Low-level derivations: Difference between revisions

DoggoBit (talk | contribs)
Remove wip and add link back to derivations
DoggoBit (talk | contribs)
Standard environment: fix highlighting
Line 139: Line 139:
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, so we don't have to do the package importing ourselves:


{{File|example.nix|nix|highlight=11|
{{File|example.nix|nix|highlight=3|
<nowiki>
<nowiki>
{ pkgs ? import </nowiki><<nowiki>nixpkgs</nowiki>><nowiki> {} }:
{ pkgs ? import </nowiki><<nowiki>nixpkgs</nowiki>><nowiki> {} }: