summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-01-04 11:56:15 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-01-04 11:56:15 +0000
commitb79b85ad7668783391538fe2cda2e896f4ea0c8e (patch)
tree0eed5dc42babdeee9e41a5d51f114c4356aa8723
parent83647f4ef14f1ecf40b9fc6099fc77864b87cf41 (diff)
downloadguix-b79b85ad7668783391538fe2cda2e896f4ea0c8e.tar.gz
* 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.

-rw-r--r--corepkgs/derivation.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/corepkgs/derivation.nix b/corepkgs/derivation.nix
index 157a1647eb..2e2d0002c2 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;