git.iko.soy/typeable/nixpkgs
on master help sign in
ghcjs-ng: Move to $out/lib/ghcjs-8.4

This is standard for ghc compilers & much more convenient. This seems to fix the issues we have been having in ghcjs pkgs. Fixes #42032 Fixes #42617

commite01db49bfa43b0016229150fa19c9967677a808c authorMatthew Bauer <mjbauer95@gmail.com> dateTue 26 Jun 2018, 16:34 (8 years ago) parentc5cb7e5
2 files changed+7−6
pkgs/development/compilers/ghcjs-ng/default.nix+4−4 pkgs/development/haskell-modules/with-packages-wrapper.nix+3−2
pkgs/development/compilers/ghcjs-ng/default.nix+4−4
@@ -80,12 +80,12 @@ in stdenv.mkDerivation {
8080 cd lib/boot
8181
8282 mkdir -p $out/bin
83− mkdir -p $out/libexec
83+ mkdir -p $out/lib/${bootGhcjs.name}
8484 lndir ${libexec} $out/bin
8585
86− wrapProgram $out/bin/ghcjs --add-flags "-B$out/libexec"
87− wrapProgram $out/bin/haddock-ghcjs --add-flags "-B$out/libexec"
88− wrapProgram $out/bin/ghcjs-pkg --add-flags "--global-package-db=$out/libexec/package.conf.d"
86+ wrapProgram $out/bin/ghcjs --add-flags "-B$out/lib/${bootGhcjs.name}"
87+ wrapProgram $out/bin/haddock-ghcjs --add-flags "-B$out/lib/${bootGhcjs.name}"
88+ wrapProgram $out/bin/ghcjs-pkg --add-flags "--global-package-db=$out/lib/${bootGhcjs.name}/package.conf.d"
8989
9090 env PATH=$out/bin:$PATH $out/bin/ghcjs-boot -j1 --with-ghcjs-bin $out/bin
9191 '';
pkgs/development/haskell-modules/with-packages-wrapper.nix+3−2
@@ -38,7 +38,8 @@ let
3838 ghcCommand' = if isGhcjs then "ghcjs" else "ghc";
3939 ghcCommand = "${ghc.targetPrefix}${ghcCommand'}";
4040 ghcCommandCaps= lib.toUpper ghcCommand';
41− libDir = if isHaLVM then "$out/lib/HaLVM-${ghc.version}" else if isGhcjs then "$out/libexec" else "$out/lib/${ghcCommand}-${ghc.version}";
41+ libDir = if isHaLVM then "$out/lib/HaLVM-${ghc.version}"
42+ else "$out/lib/${ghcCommand}-${ghc.version}";
4243 docDir = "$out/share/doc/ghc/html";
4344 packageCfgDir = "${libDir}/package.conf.d";
4445 paths = lib.filter (x: x ? isHaskellLibrary) (lib.closePropagation packages);
@@ -104,7 +105,7 @@ symlinkJoin {
104105 --set "NIX_${ghcCommandCaps}_LIBDIR" "${libDir}"
105106 fi
106107
107− '' + (lib.optionalString targetPlatform.isDarwin ''
108+ '' + (lib.optionalString (targetPlatform.isDarwin && !isGhcjs && !targetPlatform.isiOS) ''
108109 # Work around a linker limit in macOS Sierra (see generic-builder.nix):
109110 local packageConfDir="$out/lib/${ghc.name}/package.conf.d";
110111 local dynamicLinksDir="$out/lib/links"