about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-12 18:04:47 +0100
committersternenseemann <sternenseemann@systemli.org>2021-02-25 19:52:33 +0100
commitfcf24459e0c7fb072e77f3416ff27881c4c58f2e (patch)
treef8065c5fe7b63be66cb09a4162fc9a89ffd18dd8 /flake.nix
parent95387b07393fe293b423c87fdd8ad2e78901a067 (diff)
pkgs/profpatsch/nman: don't realise all build outputs for `out`
nix-instantiate unfortunately prints the plain .drv path for <attr>.out
wheras it prints <name>.drv!<output> for all non-default outputs. If we
realise the plain .drv path, _all_ outputs are realised which is not
desireable since we may not need extra store path being created by this,
e. g. for a derivation with outputs = [ "out" "lib" "dev" ] we only need
to realise "out" if the man pages are located in there, saving a bit of
time and disk space.

We implement this better behavior by adding the render function to
DrvWithOutput which converts a DrvWithOutput (at the cost of copying) to
an OsString. If the output is out, "!out" is appended to the path
meaning nix-store will only realise the default output.
Diffstat (limited to 'flake.nix')
0 files changed, 0 insertions, 0 deletions