This commit is contained in:
Shea Levy 2015-01-12 12:20:42 -05:00
parent 3f714f32ac
commit d30e9082bb

View File

@ -2,10 +2,11 @@
rec { rec {
overrideCabal = drv: f: drv.override (args: args // { overrideCabal = drv: f: (drv.override (args: args // {
mkDerivation = drv: args.mkDerivation (drv // f drv); mkDerivation = drv: args.mkDerivation (drv // f drv);
})) // {
overrideScope = scope: overrideCabal (drv.overrideScope scope) f; overrideScope = scope: overrideCabal (drv.overrideScope scope) f;
}); };
doHaddock = drv: overrideCabal drv (drv: { noHaddock = false; }); doHaddock = drv: overrideCabal drv (drv: { noHaddock = false; });
dontHaddock = drv: overrideCabal drv (drv: { noHaddock = true; }); dontHaddock = drv: overrideCabal drv (drv: { noHaddock = true; });