From b79b85ad7668783391538fe2cda2e896f4ea0c8e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 Jan 2012 11:56:15 +0000 Subject: * 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- corepkgs/derivation.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'corepkgs') 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; -- cgit 1.4.1