* In overrideDerivation, filter out the `type' attribute.

svn path=/nixpkgs/trunk/; revision=20487
This commit is contained in:
Eelco Dolstra 2010-03-09 11:57:05 +00:00
parent b44af59afb
commit a3111812ad

View File

@ -31,7 +31,7 @@ rec {
overrideDerivation = drv: f:
let
# Filter out special attributes.
attrs = removeAttrs drv ["meta" "passthru" "outPath" "drvPath" "hostDrv" "buildDrv"];
attrs = removeAttrs drv ["meta" "passthru" "outPath" "drvPath" "hostDrv" "buildDrv" "type"];
newDrv = derivation (attrs // (f drv));
in newDrv //
{ meta = if drv ? meta then drv.meta else {};