haskell: add 'addPkgconfigDepend' combinator to lib.nix
This commit is contained in:
parent
4fb4e24bf3
commit
7bcc1bfc11
@ -31,6 +31,9 @@ rec {
|
||||
addBuildDepend = drv: x: addBuildDepends drv [x];
|
||||
addBuildDepends = drv: xs: overrideCabal drv (drv: { buildDepends = (drv.buildDepends or []) ++ xs; });
|
||||
|
||||
addPkgconfigDepend = drv: x: addPkgconfigDepends drv [x];
|
||||
addPkgconfigDepends = drv: xs: overrideCabal drv (drv: { buildDepends = (drv.pkgconfigDepends or []) ++ xs; });
|
||||
|
||||
enableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f-${x}") "-f${x}";
|
||||
disableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f${x}") "-f-${x}";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user