mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
* In overrideDerivation, filter out the `type' attribute.
svn path=/nixpkgs/trunk/; revision=20487
This commit is contained in:
parent
b44af59afb
commit
a3111812ad
@ -31,7 +31,7 @@ rec {
|
|||||||
overrideDerivation = drv: f:
|
overrideDerivation = drv: f:
|
||||||
let
|
let
|
||||||
# Filter out special attributes.
|
# 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));
|
newDrv = derivation (attrs // (f drv));
|
||||||
in newDrv //
|
in newDrv //
|
||||||
{ meta = if drv ? meta then drv.meta else {};
|
{ meta = if drv ? meta then drv.meta else {};
|
||||||
|
Loading…
Reference in New Issue
Block a user