Skip to content

Commit cd106c4

Browse files
committed
Fix default setup for ghcjs
1 parent 486984a commit cd106c4

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

overlays/bootstrap.nix

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,6 @@ in {
13341334

13351335
# Memoize the cabal-install and nix-tools derivations by adding:
13361336
# haskell-nix.cabal-install.ghcXXX
1337-
# haskell-nix.cabal-install-unchecked.ghcXXX
1338-
# haskell-nix.nix-tools.ghcXXX
1339-
# haskell-nix.nix-tools-unchecked.ghcXXX
13401337
# Using these avoids unnecessary calls to mkDerivation.
13411338
# For cabal projects we match the versions used to the compiler
13421339
# selected for the project to avoid the chance of a dependency
@@ -1346,32 +1343,6 @@ in {
13461343
# that GHC itself in your closure).
13471344
cabal-install = final.lib.mapAttrs (compiler-nix-name: _:
13481345
final.haskell-nix.cabal-install-tool { inherit compiler-nix-name; }) final.haskell-nix.compiler;
1349-
cabal-install-unchecked = final.lib.mapAttrs (compiler-nix-name: _:
1350-
final.haskell-nix.cabal-install-tool {
1351-
compiler-nix-name =
1352-
# If there is no materialized version for this GHC version fall back on
1353-
# a version of GHC for which there will be.
1354-
if builtins.pathExists (../materialized + "/${compiler-nix-name}/cabal-install/default.nix")
1355-
then compiler-nix-name
1356-
else "ghc928";
1357-
checkMaterialization = false;
1358-
}) final.haskell-nix.compiler;
1359-
1360-
# These `internal` versions are used for:
1361-
# * `nix-tools` for stack projects (since we use `nix-tools` to process
1362-
# the `stack.yaml` file we cannot match the ghc of the project the
1363-
# way we do for cabal projects).
1364-
# * Scripts are used to update stackage and hackage
1365-
# Updating the version of GHC selected here should be fairly safe as
1366-
# there should be no difference in the behaviour of these tools.
1367-
# (stack projects on macOS may see a significant change in the
1368-
# closure size of their build dependencies due to dynamic linking).
1369-
internal-cabal-install =
1370-
final.haskell-nix.cabal-install-tool {
1371-
compiler-nix-name = "ghc8107";
1372-
compilerSelection = p: p.haskell.compiler;
1373-
checkMaterialization = false;
1374-
};
13751346

13761347
# WARN: The `import ../. {}` will prevent
13771348
# any cross to work, as we will loose

overlays/default-setup.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let
3838
# It makes sense to use this version (when possible) because it will match the behavior of
3939
# building with `cabal-install` (including fixes that may not be in the
4040
# version of Cabal bundled with GHC).
41-
cabalFromCabalInstall = final.buildPackages.haskell-nix.cabal-install-unchecked.${compiler-nix-name}.project.hsPkgs.Cabal.components.library;
41+
cabalFromCabalInstall = final.buildPackages.haskell-nix.cabal-install.${compiler-nix-name}.project.hsPkgs.Cabal.components.library;
4242

4343
in ghc // rec {
4444
defaultSetup = final.lib.mapAttrs (_: useCabalFromCabalInstall: setup-builder ({

0 commit comments

Comments
 (0)