mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
a5b5d65b5b
Unfortunately the outdated version of optparse-applicative we need to use hasn't survived the ansi-wl-pprint deprecation…
21 lines
821 B
Nix
21 lines
821 B
Nix
{ haskellLib, fetchpatch, buildPackages }:
|
|
|
|
let inherit (haskellLib) addBuildTools appendConfigureFlag dontHaddock doJailbreak markUnbroken overrideCabal;
|
|
in self: super: {
|
|
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: {
|
|
# Allow transformers-compat >= 0.7
|
|
optparse-applicative = doJailbreak self.optparse-applicative_0_15_1_0;
|
|
ansi-wl-pprint = self.ansi-wl-pprint_0_6_9;
|
|
}));
|
|
}
|