mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
overrideCabal: Preserve overrideScope attr
This commit is contained in:
parent
e2edf1e01d
commit
3f714f32ac
@ -4,6 +4,7 @@ rec {
|
||||
|
||||
overrideCabal = drv: f: drv.override (args: args // {
|
||||
mkDerivation = drv: args.mkDerivation (drv // f drv);
|
||||
overrideScope = scope: overrideCabal (drv.overrideScope scope) f;
|
||||
});
|
||||
|
||||
doHaddock = drv: overrideCabal drv (drv: { noHaddock = false; });
|
||||
|
Loading…
Reference in New Issue
Block a user