Nix derivations
A Nixᛦ expression which describes a build action is called a derivation. The result (since a derivation is a function) of a derivation is an object in the Nix storeᛦ.
Derivations are constructed using stdenv.mkDerivation
as in Hello, Nix!ᛦ
Minimal attributes
name
- default value is${pname}-${version}
pname
- package nameversion
- version stringsrc
- result of a source fetching function likefetchurl
orfetchgit
Common optional attributes
builder
- a Nix builder scriptᛦ describing the build process for the package (defaults toconfigure; make; make install
)