mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
* Handle the attributes added by the multiple outputs branch.
svn path=/nixpkgs/trunk/; revision=31278
This commit is contained in:
parent
0348f11e22
commit
7fcf771c2a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user