forked from mirrors/nixpkgs
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:
parent
1073187f78
commit
84fba68006
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue