Skip to content

Commit

Permalink
clarify what's in the output
Browse files Browse the repository at this point in the history
Co-authored-by: Silvan Mosberger <[email protected]>
  • Loading branch information
fricklerhandwerk and infinisil authored Mar 13, 2024
1 parent 41baa3f commit f8fd764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tutorials/callpackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ writeShellScriptBin "hello" ''
:::{dropdown} Detailed explanation
`hello.nix` declares a function which takes as argument an attribute set with one element `writeShellScriptBin`.
[`writeShellScriptBin`](https://nixos.org/manual/nixpkgs/unstable/#trivial-builder-writeShellScriptBin) is a function that happens to exist in Nixpkgs, a [build helper](https://nixos.org/manual/nixpkgs/unstable/#part-builders) that returns a derivation.
The derivation output in this case is an executable shell script with the contents `echo "hello world"` named `"hello"`.
The derivation output in this case contains an executable shell script in `$out/bin/hello` that prints "Hello world" when run.
:::

Now create a file `default.nix` with the following contents:
Expand Down

0 comments on commit f8fd764

Please sign in to comment.