Low-level derivations: Difference between revisions
m →A Hello, world example: Fix typo |
→Standard environment: Cite Nixpkgs manual |
||
Line 137: | Line 137: | ||
=== Standard environment === | === Standard environment === | ||
For practicality purposes, let's compare this to the standard environment way of doing this. Using <code>stdenv.mkDerivation</code> gives us access to the common Linux utilities pre-included for us, so we don't have to do the package importing ourselves: | For practicality purposes, let's compare this to the standard environment way of doing this. Using <code>stdenv.mkDerivation</code> gives us access to the common Linux utilities pre-included for us{{cite manual|nixpkgs|sec-tools-of-stdenv|Tools provided by stdenv}}, so we don't have to do the package importing ourselves: | ||
{{File|example.nix|nix|highlight=3| | {{File|example.nix|nix|highlight=3| |