diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-01-04T11·56+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-01-04T11·56+0000 |
commit | b79b85ad7668783391538fe2cda2e896f4ea0c8e (patch) | |
tree | 0eed5dc42babdeee9e41a5d51f114c4356aa8723 /corepkgs | |
parent | 83647f4ef14f1ecf40b9fc6099fc77864b87cf41 (diff) |
* Export the original input attributes of the derivation in
‘drvAttrs’. This will simplify the implementation of functions such as ‘overrideDerivation’ in Nixpkgs, which need to filter out any added attributes such as outPath.
Diffstat (limited to 'corepkgs')
-rw-r--r-- | corepkgs/derivation.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/corepkgs/derivation.nix b/corepkgs/derivation.nix index 157a1647ebd9..2e2d0002c2b8 100644 --- a/corepkgs/derivation.nix +++ b/corepkgs/derivation.nix @@ -7,7 +7,10 @@ let strict = derivationStrict drvAttrs; - commonAttrs = drvAttrs // (builtins.listToAttrs outputsList) // { all = map (x: x.value) outputsList; }; + commonAttrs = drvAttrs // (builtins.listToAttrs outputsList) // + { all = map (x: x.value) outputsList; + inherit drvAttrs; + }; outputToAttrListElement = outputName: { name = outputName; |