2022-04-27 09:35:20 +00:00
|
|
|
{ haskellLib, fetchpatch, buildPackages }:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
let inherit (haskellLib) addBuildTools appendConfigureFlag dontHaddock doJailbreak markUnbroken overrideCabal;
|
2021-09-18 10:52:07 +00:00
|
|
|
in self: super: {
|
2022-04-27 09:35:20 +00:00
|
|
|
ghcjs = overrideCabal (drv: {
|
|
|
|
# Jailbreak and patch can be dropped after https://github.com/ghcjs/ghcjs/pull/833
|
|
|
|
jailbreak = true;
|
|
|
|
patches = drv.patches or [] ++ [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ghcjs-aeson-2.0.patch";
|
|
|
|
url = "https://github.com/ghcjs/ghcjs/commit/9ef1f92d740e8503d15d91699f57db147f0474cc.patch";
|
|
|
|
sha256 = "0cgxcy6b5870bv4kj54n3bzcqinh4gl4w4r78dg43h2mblhkzbnj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}) (super.ghcjs.overrideScope (self: super: {
|
2023-01-11 07:51:40 +00:00
|
|
|
# Allow transformers-compat >= 0.7
|
|
|
|
optparse-applicative = doJailbreak self.optparse-applicative_0_15_1_0;
|
2021-09-18 10:52:07 +00:00
|
|
|
}));
|
|
|
|
}
|