mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
haskell-streaming-commons: fix build on older GHC versions some more
This commit is contained in:
parent
ba67ad3c88
commit
1d6d5932cd
@ -57,8 +57,8 @@ self: super: {
|
|||||||
# The test suite depends on time >=1.4.0.2.
|
# The test suite depends on time >=1.4.0.2.
|
||||||
cookie = dontCheck super.cookie ;
|
cookie = dontCheck super.cookie ;
|
||||||
|
|
||||||
# bytestring >=0.10.2.0
|
# Work around bytestring >=0.10.2.0 requirement.
|
||||||
streaming-commons = addBuildTool super.streaming-commons self.bytestring-builder;
|
streaming-commons = addBuildDepend super.streaming-commons self.bytestring-builder;
|
||||||
|
|
||||||
# Choose appropriate flags for our version of 'bytestring'.
|
# Choose appropriate flags for our version of 'bytestring'.
|
||||||
bytestring-builder = disableCabalFlag super.bytestring-builder "bytestring_has_builder";
|
bytestring-builder = disableCabalFlag super.bytestring-builder "bytestring_has_builder";
|
||||||
|
@ -57,8 +57,8 @@ self: super: {
|
|||||||
# The test suite depends on time >=1.4.0.2.
|
# The test suite depends on time >=1.4.0.2.
|
||||||
cookie = dontCheck super.cookie ;
|
cookie = dontCheck super.cookie ;
|
||||||
|
|
||||||
# bytestring >=0.10.2.0
|
# Work around bytestring >=0.10.2.0 requirement.
|
||||||
streaming-commons = addBuildTool super.streaming-commons self.bytestring-builder;
|
streaming-commons = addBuildDepend super.streaming-commons self.bytestring-builder;
|
||||||
|
|
||||||
# Choose appropriate flags for our version of 'bytestring'.
|
# Choose appropriate flags for our version of 'bytestring'.
|
||||||
bytestring-builder = disableCabalFlag super.bytestring-builder "bytestring_has_builder";
|
bytestring-builder = disableCabalFlag super.bytestring-builder "bytestring_has_builder";
|
||||||
|
@ -25,6 +25,9 @@ rec {
|
|||||||
addBuildTool = drv: x: addBuildTools drv [x];
|
addBuildTool = drv: x: addBuildTools drv [x];
|
||||||
addBuildTools = drv: xs: overrideCabal drv (drv: { buildTools = (drv.buildTools or []) ++ xs; });
|
addBuildTools = drv: xs: overrideCabal drv (drv: { buildTools = (drv.buildTools or []) ++ xs; });
|
||||||
|
|
||||||
|
addBuildDepend = drv: x: addBuildDepends drv [x];
|
||||||
|
addBuildDepends = drv: xs: overrideCabal drv (drv: { buildDepends = (drv.buildDepends or []) ++ xs; });
|
||||||
|
|
||||||
enableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f-${x}") "-f${x}";
|
enableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f-${x}") "-f${x}";
|
||||||
disableCabalFlag = 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