Low-level derivations: Difference between revisions

DoggoBit (talk | contribs)
m fix display
DoggoBit (talk | contribs)
m Switch arguments to named
Line 8: Line 8:
{{File|example.sh|bash|#!/bin/bash
{{File|example.sh|bash|#!/bin/bash
echo "Hello, world!"}}
echo "Hello, world!"}}
When running this script (e.g. <code>$ ./example.sh</code>) we'll get exactly the output we want. However, we're trying to build the script using Nix. Our first approach might be to write a simple derivation{{cite manual|nix|language/derivations|5.4.1|Derivations}} similar to:
When running this script (e.g. <code>$ ./example.sh</code>) we'll get exactly the output we want. However, we're trying to build the script using Nix. Our first approach might be to write a simple derivation{{cite manual|nix|language/derivations|number=5.4.1|title=Derivations}} similar to:
{{File|example.nix|nix|<nowiki>derivation {
{{File|example.nix|nix|<nowiki>derivation {
   name = "hello-world";
   name = "hello-world";