Merge pull request #45408 from obsidiansystems/appendConfigureFlags
haskell lib: Add appendConfigureFlags
This commit is contained in:
commit
65402b0f1d
1 changed files with 3 additions and 1 deletions
|
@ -129,10 +129,12 @@ rec {
|
||||||
|
|
||||||
> haskell.lib.appendConfigureFlag haskellPackages.servant "--profiling-detail=all-functions"
|
> haskell.lib.appendConfigureFlag haskellPackages.servant "--profiling-detail=all-functions"
|
||||||
*/
|
*/
|
||||||
appendConfigureFlag = drv: x: overrideCabal drv (drv: { configureFlags = (drv.configureFlags or []) ++ [x]; });
|
appendConfigureFlag = drv: x: appendConfigureFlags drv [x];
|
||||||
|
appendConfigureFlags = drv: xs: overrideCabal drv (drv: { configureFlags = (drv.configureFlags or []) ++ xs; });
|
||||||
|
|
||||||
appendBuildFlag = drv: x: overrideCabal drv (drv: { buildFlags = (drv.buildFlags or []) ++ [x]; });
|
appendBuildFlag = drv: x: overrideCabal drv (drv: { buildFlags = (drv.buildFlags or []) ++ [x]; });
|
||||||
appendBuildFlags = drv: xs: overrideCabal drv (drv: { buildFlags = (drv.buildFlags or []) ++ xs; });
|
appendBuildFlags = drv: xs: overrideCabal drv (drv: { buildFlags = (drv.buildFlags or []) ++ xs; });
|
||||||
|
|
||||||
/* removeConfigureFlag drv x is a Haskell package like drv, but with
|
/* removeConfigureFlag drv x is a Haskell package like drv, but with
|
||||||
all cabal configure arguments that are equal to x removed.
|
all cabal configure arguments that are equal to x removed.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue