mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
D'oh
This commit is contained in:
parent
3f714f32ac
commit
d30e9082bb
@ -2,10 +2,11 @@
|
||||
|
||||
rec {
|
||||
|
||||
overrideCabal = drv: f: drv.override (args: args // {
|
||||
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; });
|
||||
dontHaddock = drv: overrideCabal drv (drv: { noHaddock = true; });
|
||||
|
Loading…
Reference in New Issue
Block a user