* Handle the attributes added by the multiple outputs branch.

svn path=/nixpkgs/trunk/; revision=31278
This commit is contained in:
Eelco Dolstra 2012-01-04 15:06:21 +00:00
parent 0348f11e22
commit 7fcf771c2a

View file

@ -34,7 +34,7 @@ rec {
overrideDerivation = drv: f:
let
# Filter out special attributes.
drop = ["meta" "passthru" "outPath" "drvPath" "hostDrv" "buildDrv" "type" "override" "deepOverride" "origArgs"]
drop = [ "meta" "passthru" "outPath" "drvPath" "hostDrv" "buildDrv" "type" "override" "deepOverride" "origArgs" "drvAttrs" "outputName" "all" "out" ]
# also drop functions such as .merge .override etc
++ lib.filter (n: isFunction (getAttr n drv)) (attrNames drv);
attrs = removeAttrs drv drop;