haskell-streaming-commons: fix build on older GHC versions some more

This commit is contained in:
Peter Simons 2015-01-20 23:50:38 +01:00
parent ba67ad3c88
commit 1d6d5932cd
3 changed files with 7 additions and 4 deletions

View File

@ -57,8 +57,8 @@ self: super: {
# The test suite depends on time >=1.4.0.2.
cookie = dontCheck super.cookie ;
# bytestring >=0.10.2.0
streaming-commons = addBuildTool super.streaming-commons self.bytestring-builder;
# Work around bytestring >=0.10.2.0 requirement.
streaming-commons = addBuildDepend super.streaming-commons self.bytestring-builder;
# Choose appropriate flags for our version of 'bytestring'.
bytestring-builder = disableCabalFlag super.bytestring-builder "bytestring_has_builder";

View File

@ -57,8 +57,8 @@ self: super: {
# The test suite depends on time >=1.4.0.2.
cookie = dontCheck super.cookie ;
# bytestring >=0.10.2.0
streaming-commons = addBuildTool super.streaming-commons self.bytestring-builder;
# Work around bytestring >=0.10.2.0 requirement.
streaming-commons = addBuildDepend super.streaming-commons self.bytestring-builder;
# Choose appropriate flags for our version of 'bytestring'.
bytestring-builder = disableCabalFlag super.bytestring-builder "bytestring_has_builder";

View File

@ -25,6 +25,9 @@ rec {
addBuildTool = drv: x: addBuildTools drv [x];
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}";
disableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f${x}") "-f-${x}";