mkDerivation: Allow direct access to passthru

Before this, the passthru attributes were only merged in with the
derivation attribute set, and there was no way to distinguish after the
fact which attributes were part of the derivation and which came from
passthru. Now passthru can be looked at separately as well.

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-03 09:07:42 -04:00
parent 1073187f78
commit 84fba68006

View file

@ -85,6 +85,7 @@ let
# include it in the result, it *is* available to nix-env for
# queries.
meta = attrs.meta or {};
passthru = attrs.passthru or {};
} //
# Pass through extra attributes that are not inputs, but
# should be made available to Nix expressions using the