ghc-7.10.1: fix user pkg db location for GHCJS
This cherry picks the commit referenced on the associated trac ticket:
https://ghc.haskell.org/trac/ghc/ticket/10232
commit9a658d340fc6fe2cfaa47309e216fab8235445a9
authorCharles Strahan <charles.c.strahan@gmail.com>
dateTue 5 May 2015, 20:43 (12 years ago)
parent007dfb8
pkgs/development/compilers/ghc/7.10.1.nix+9
@@ -35,6 +35,15 @@ stdenv.mkDerivation rec {
3535
3636 enableParallelBuilding = true;
3737
38+ patches = [
39+ # Fix user pkg db location for GHCJS:
40+ # https://ghc.haskell.org/trac/ghc/ticket/10232
41+ (fetchpatch {
42+ url = "https://git.haskell.org/ghc.git/patch/c46e4b184e0abc158ad8f1eff6b3f0421acaf984";
43+ sha256 = "0fkdyqd4bqp742rydwmqq8d2n7gf61bgdhaiw8xf7jy0ix7lr60w";
44+ })
45+ ];
46+
3847 postPatch = ''
3948 pushd libraries/Cabal
4049 patch -p1 < ${cabalPatch}