mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +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.
|
||||
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";
|
||||
|
@ -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";
|
||||
|
@ -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}";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user