mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
build jailbreak-cabal on GHC 8.0.x
This commit is contained in:
parent
c6ad4841fd
commit
88f9fb7c21
1 changed files with 22 additions and 0 deletions
|
@ -29,4 +29,26 @@ self: super: {
|
|||
transformers = null;
|
||||
unix = null;
|
||||
xhtml = null;
|
||||
|
||||
Cabal_1_23_0_0 = overrideCabal super.Cabal_1_22_4_0 (drv: {
|
||||
version = "1.23.0.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "haskell";
|
||||
repo = "cabal";
|
||||
rev = "18fcd9c1aaeddd9d10a25e44c0e986c9889f06a7";
|
||||
sha256 = "1bakw7h5qadjhqbkmwijg3588mjnpvdhrn8lqg8wq485cfcv6vn3";
|
||||
};
|
||||
jailbreak = false;
|
||||
doHaddock = false;
|
||||
postUnpack = "sourceRoot+=/Cabal";
|
||||
postPatch = ''
|
||||
setupCompileFlags+=" -DMIN_VERSION_binary_0_8_0=1"
|
||||
'';
|
||||
});
|
||||
jailbreak-cabal = super.jailbreak-cabal.override {
|
||||
Cabal = self.Cabal_1_23_0_0;
|
||||
mkDerivation = drv: self.mkDerivation (drv // {
|
||||
preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue