Low-level derivations: Difference between revisions

DoggoBit (talk | contribs)
Standard environment: cite mkDerivation
DoggoBit (talk | contribs)
Nixpkgs utilities: cite writeShellScript
Line 157: Line 157:
=== Nixpkgs utilities ===
=== Nixpkgs utilities ===


Even further up the chain of abstractions, [[Nixpkgs]] contains many pre-built utilities for us that handle some of the configuration involved in the standard environment as well. In our case, we can use the <code>writeShellScript</code>:
Even further up the chain of abstractions, [[Nixpkgs]] contains many pre-built utilities for us that handle some of the configuration involved in the standard environment as well. In our case, we can use the <code>writeShellScript</code>{{cite manual|nixpkgs|trivial-builder-writeShellScript|writeShellScript}}:


{{File|example.nix|nix|
{{File|example.nix|nix|