aboutsummaryrefslogtreecommitdiff
path: root/src/nix/bundle.md
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-02-22 14:32:56 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-02-22 14:32:56 +0100
commit1a6548ca757f81594f5b54d8dada4c5ba65821de (patch)
tree40ff546a33566eeee702ccaead1ec30e3dfc6e42 /src/nix/bundle.md
parent38eea2c503a70e32dd6110937d49705976d5fc7a (diff)
Update docs
Diffstat (limited to 'src/nix/bundle.md')
-rw-r--r--src/nix/bundle.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nix/bundle.md b/src/nix/bundle.md
index a5186a996..2bb70711f 100644
--- a/src/nix/bundle.md
+++ b/src/nix/bundle.md
@@ -42,24 +42,26 @@ homepage](https://github.com/NixOS/bundlers) for more details.
If no flake output attribute is given, `nix bundle` tries the following
flake output attributes:
-* `defaultBundler.<system>`
+* `bundlers.<system>.default`
If an attribute *name* is given, `nix run` tries the following flake
output attributes:
-* `bundler.<system>.<name>`
+* `bundlers.<system>.<name>`
# Bundlers
A bundler is specified by a flake output attribute named
-`bundlers.<system>.<name>` or `defaultBundler.<system>`. It looks like this:
+`bundlers.<system>.<name>`. It looks like this:
```nix
-bundlers.x86_64-linux.identity = drv: drv;
+bundlers.x86_64-linux = rec {
+ identity = drv: drv;
-bundlers.x86_64-linux.blender_2_79 = drv: self.packages.x86_64-linux.blender_2_79;
+ blender_2_79 = drv: self.packages.x86_64-linux.blender_2_79;
-defaultBundler.x86_64-linux = drv: drv;
+ default = identity;
+};
```
A bundler must be a function that accepts an arbitrary value (typically a