From b79b85ad7668783391538fe2cda2e896f4ea0c8e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 Jan 2012 11:56:15 +0000 Subject: [PATCH] =?UTF-8?q?*=20Export=20the=20original=20input=20attribute?= =?UTF-8?q?s=20of=20the=20derivation=20in=20=20=20=E2=80=98drvAttrs?= =?UTF-8?q?=E2=80=99.=20=20This=20will=20simplify=20the=20implementation?= =?UTF-8?q?=20of=20functions=20such=20=20=20as=20=E2=80=98overrideDerivati?= =?UTF-8?q?on=E2=80=99=20in=20Nixpkgs,=20which=20need=20to=20filter=20out?= =?UTF-8?q?=20any=20=20=20added=20attributes=20such=20as=20outPath.?= 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(-) 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;