mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
* Allow `overrideDerivation' to work on derivations to which
`makeOverridable' has been applied (!). Ugly. svn path=/nixpkgs/trunk/; revision=20591
This commit is contained in:
parent
4b7ff33c26
commit
7dffd96978
@ -31,7 +31,7 @@ rec {
|
||||
overrideDerivation = drv: f:
|
||||
let
|
||||
# Filter out special attributes.
|
||||
attrs = removeAttrs drv ["meta" "passthru" "outPath" "drvPath" "hostDrv" "buildDrv" "type"];
|
||||
attrs = removeAttrs drv ["meta" "passthru" "outPath" "drvPath" "hostDrv" "buildDrv" "type" "override" "deepOverride" "origArgs"];
|
||||
newDrv = derivation (attrs // (f drv));
|
||||
in newDrv //
|
||||
{ meta = if drv ? meta then drv.meta else {};
|
||||
|
Loading…
Reference in New Issue
Block a user