Skip to content

Commit 2922479

Browse files
committed
Remove old code
1 parent 7549380 commit 2922479

File tree

6 files changed

+5
-68
lines changed

6 files changed

+5
-68
lines changed

compiler/ghc/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ let
274274
then ../../materialized/${compiler-nix-name}/hadrian-ghc98
275275
else ../../materialized/${compiler-nix-name}/hadrian-ghc99;
276276
modules = [{
277-
reinstallableLibGhc = false;
278277
# Apply the patches in a way that does not require using something
279278
# like `srcOnly`. The problem with `pkgs.srcOnly` was that it had to run
280279
# on a platform at eval time.

modules/component-driver.nix

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ in
2626
merge = _loc: defs: lib.last (lib.getValues defs);
2727
};
2828
};
29-
30-
options.reinstallableLibGhc = lib.mkOption {
31-
type = lib.types.bool;
32-
default = !pkgs.stdenv.hostPlatform.isGhcjs;
33-
description = "Is lib:ghc reinstallable?";
34-
};
3529
options.setup-depends = lib.mkOption {
3630
type = lib.types.listOf lib.types.unspecified;
3731
default = [];
@@ -58,42 +52,10 @@ in
5852
#
5953
# without reinstallable-lib:ghc, this is significantly larger.
6054

61-
config.nonReinstallablePkgs = if config.preExistingPkgs != []
62-
then ["rts"] ++ config.preExistingPkgs
63-
++ lib.optionals (builtins.compareVersions config.compiler.version "8.11" < 0 && pkgs.stdenv.hostPlatform.isGhcjs) [
64-
"ghcjs-prim" "ghcjs-th"]
65-
else
66-
[ "rts" "ghc-prim" "integer-gmp" "integer-simple" "base"
67-
"deepseq" "array" "ghc-boot-th" "pretty" "template-haskell"
68-
# ghcjs custom packages
69-
"ghcjs-prim" "ghcjs-th"
70-
]
71-
++ lib.optionals (builtins.compareVersions config.compiler.version "8.11" >= 0) [
72-
"ghc-bignum"]
73-
++ lib.optionals (builtins.compareVersions config.compiler.version "9.1" >= 0) [
74-
"system-cxx-std-lib"]
75-
++ lib.optionals (builtins.compareVersions config.compiler.version "9.9" >= 0) [
76-
"ghc-internal"]
77-
++ lib.optionals (!config.reinstallableLibGhc) ([
78-
"ghc-boot"
79-
"ghc" "Cabal" "Win32" "array" "binary" "bytestring" "containers"
80-
"directory" "filepath" "ghc-boot" "ghc-compact" "ghc-prim"
81-
# "ghci" "haskeline"
82-
"hpc"
83-
"mtl" "parsec" "process" "text" "time" "transformers"
84-
"unix" "xhtml" "terminfo"
85-
]
86-
++ lib.optionals (builtins.compareVersions config.compiler.version "8.11" >= 0) [
87-
# stm and exceptions are needed by the GHC package since 9.0.1
88-
"stm" "exceptions"]
89-
++ lib.optionals (builtins.compareVersions config.compiler.version "9.8.1" >= 0) [
90-
"semaphore-compat"]
91-
++ lib.optionals (builtins.compareVersions config.compiler.version "9.9" >= 0) [
92-
"os-string"]
93-
)
94-
++ lib.optionals (!config.reinstallableLibGhc || __elem config.compiler.nix-name ["ghc865"]) [
95-
"ghc-heap"
96-
];
55+
config.nonReinstallablePkgs =
56+
["rts"] ++ config.preExistingPkgs
57+
++ lib.optionals (builtins.compareVersions config.compiler.version "8.11" < 0 && pkgs.stdenv.hostPlatform.isGhcjs) [
58+
"ghcjs-prim" "ghcjs-th"];
9759

9860
options.bootPkgs = lib.mkOption {
9961
type = lib.types.listOf lib.types.str;
@@ -102,7 +64,7 @@ in
10264
config.bootPkgs = [
10365
"rts" "ghc-boot-th"
10466
"ghcjs-prim"
105-
] ++ lib.optional (!config.reinstallableLibGhc) "ghc"
67+
] ++ lib.optional (builtins.elem "ghc" config.preExistingPkgs) "ghc"
10668
++ lib.optionals (
10769
!__elem config.compiler.nix-name ["ghc865" "ghc881" "ghc882" "ghc883" "ghc884" "ghc8101" "ghc8102" "ghc8103" "ghc8104" "ghc8105" "ghc8106" "ghc8107"]) [
10870
"ghc-bignum" ]

modules/configuration-nix.nix

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,6 @@ in {
160160
pkgs.libpcap
161161
];
162162

163-
# Build ghci and ghc with internal interpreter support to make the
164-
# `reinstallableLibGhc` build more like the boot version.
165-
# See https://github.com/input-output-hk/haskell.nix/issues/1512
166-
packages.ghc.flags.ghci = true;
167-
packages.ghc.flags.internal-interpreter = true;
168-
packages.ghci.flags.ghci = true;
169-
packages.ghci.flags.internal-interpreter = true;
170-
171-
# These flags are set by hadrian. This would be fine if:
172-
# * Haskell.nix respected `pre-existing` packages in `plan.json` and used the hadrian built version.
173-
# * If `plan.json` included the flag settings used by `pre-existing` packages.
174-
# For now the work around is to set the flags that hadrian does (see hadrian/src/Settings/Packages.hs).
175-
packages.unix.flags = pkgs.lib.optionalAttrs (builtins.compareVersions config.compiler.version "9.9" > 0) { os-string = true; };
176-
packages.directory.flags = pkgs.lib.optionalAttrs (builtins.compareVersions config.compiler.version "9.9" > 0) { os-string = true; };
177-
packages.Win32.flags = pkgs.lib.optionalAttrs (builtins.compareVersions config.compiler.version "9.9" > 0) { os-string = true; };
178-
packages.hashable.flags = pkgs.lib.optionalAttrs (builtins.compareVersions config.compiler.version "9.9" > 0) { os-string = true; };
179-
180163
# See https://github.com/Bodigrim/bitvec/pull/61
181164
packages.bitvec.patches = [
182165
(fromUntil "1.1.3.0" "1.1.3.0.1" ../patches/bitvec-gmp-fix.patch)

overlays/bootstrap.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,6 @@ in {
14841484
version = "3.2.4";
14851485
inherit ghcOverride index-state;
14861486
materialized = ../materialized/bootstrap + "/${buildBootstrapper.compilerNixName}/alex";
1487-
modules = [{ reinstallableLibGhc = false; }];
14881487
nix-tools = config.evalPackages.haskell-nix.nix-tools;
14891488
} // args);
14901489
alex = final.haskell-nix.bootstrap.packages.alex-tool {};
@@ -1495,7 +1494,6 @@ in {
14951494
evalPackages = pkgs.buildPackages;
14961495
inherit version ghcOverride index-state;
14971496
materialized = ../materialized/bootstrap + "/${buildBootstrapper.compilerNixName}/happy-${version}";
1498-
modules = [{ reinstallableLibGhc = false; }];
14991497
nix-tools = config.evalPackages.haskell-nix.nix-tools;
15001498
} // args);
15011499
happy = final.haskell-nix.bootstrap.packages.happy-tool {};
@@ -1512,7 +1510,6 @@ in {
15121510
version = "1.24.4";
15131511
inherit ghcOverride index-state;
15141512
materialized = ../materialized/bootstrap + "/${buildBootstrapper.compilerNixName}/hscolour";
1515-
modules = [{ reinstallableLibGhc = false; }];
15161513
nix-tools = config.evalPackages.haskell-nix.nix-tools;
15171514
} // args)).getComponent "exe:HsColour";
15181515
hscolour = final.haskell-nix.bootstrap.packages.hscolour-tool {};

overlays/ghc-packages.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ in rec {
260260
configureArgs = "--disable-tests --disable-benchmarks --allow-newer='terminfo:base'"; # avoid failures satisfying bytestring package tests dependencies
261261
modules = [{
262262
packages.iserv-proxy.patches = [./patches/ghc/ghc-8.10.7-iserv-proxy-load-dlls.patch];
263-
reinstallableLibGhc = false;
264263
}];
265264
}))
266265
ghc-extra-pkgs-cabal-projects;

test/plugin/default.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ let
77
inherit compiler-nix-name evalPackages;
88
src = testSrc "plugin";
99
cabalProjectLocal = builtins.readFile ../cabal.project.local;
10-
modules = [{
11-
reinstallableLibGhc = builtins.compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.8.1" < 0;
12-
}];
1310
};
1411

1512
packages = project.hsPkgs;

0 commit comments

Comments
 (0)