Re:Flakes – Proposed mechanism to package Nix expressions in...
by Ptival on Monday July 22, 2019 @07:15PM
(#20503153)
This works fine in Nix because those package names are the names of derivations that themselves pin a given version of said packages.
In practice, the default set is expected to be somewhat internally consistent, so that you can just use the package names to refer to the "most recent consistent set". But if need arises, you can also override individual packages to pin them at a different version than the upstream-provided one.
Regarding syntax, I would prefer something like this:
DEPENDS_ON python 3.5.1, python/dateutil 1.2.3, ...
BUILD_TOOL bash 1.2.3
BUILD_SCRIPT ./build.sh