nixpkgs/pkgs/top-level
sternenseemann 0cac1f100d haskell.compiler.*: don't declare stage0 ghc as dep to stdenv
Some GHC bindists have a normal `$out/lib` directory which contains
symlinks to all core libs. Because it is a normal lib directory, the
bintools setup hook will pick up on it and cause ld to pass the
appropriate -L and -rpath flags. We do not want this to happen,
especially in the case of the stage2 compiler. Not only will the final
ghc have an unnecessary reference (and thus increased closure size) to
the binary ghc, but the extra libraries in the rpath mess with the rts
and cause e.g. segfaults in GHCi.

Unfortunately, there is no way to prevent this. It is a fundamental flaw
in the cc and bintools wrappers that they do not actually distinguish
between the roles of dependencies (build, host, target). Instead
the mangleVar* function will translate the dependencies split up by
roles into platforms. This means that the wrappers can't distinguish
between depsBuildBuild and depsHostTarget (== buildInputs) when natively
compiling. As long as we are natively compiling the wrappers will put
the stage0 ghc (be it in depsBuildBuild, nativeBuildInputs etc.) into
the linker flags of the final ghc.

The solution is to sidestep the issue. We just had ghc in depsBuildBuild
to have it added to PATH. GHC itself will pass the appropriate linker
flags if necessary. To avoid the setup hooks picking up on the GHC
libraries we just don't put it into depsBuildBuild or any other
dependency list. Since the GHC build system accepts the GHC binary via
an absolute path, we don't even need to add the stage0 GHC to PATH.
2024-09-23 18:44:43 +02:00
..
pkg-config
ada-packages.nix
agda-packages.nix
aliases.nix python3{11,12}Packages.boto: drop (#343727) 2024-09-22 22:31:55 +02:00
all-packages.nix stylelint: move to by-name and modernize derivation (#343730) 2024-09-22 22:32:34 +02:00
beam-packages.nix beam-packages: add nodocs target for building ex_doc on 27+ 2024-09-06 09:57:17 -04:00
by-name-overlay.nix
config.nix stdenv: Allow user to supply their bootstrapFiles set of tools 2024-08-30 02:31:18 +00:00
coq-packages.nix coqPackages.mtac2: init at 1.4-coq8.19 2024-09-16 09:58:24 +02:00
cubocore-packages.nix
cuda-packages.nix
darwin-aliases.nix
darwin-packages.nix darwin.xcode: add 15.2, 15.3 and 15.4 (#313003) 2024-09-07 16:24:18 +08:00
default.nix
dhall-packages.nix
dotnet-packages.nix
emacs-packages.nix emacs: factor out common overrides for nongnu packages 2024-09-14 13:49:44 +08:00
emilua-plugins.nix emiluaPlugins.secp256k1: init at 0.5.0 2024-09-21 21:04:35 +00:00
emscripten-packages.nix
gnuradio-packages.nix
hare-third-party.nix
haskell-packages.nix haskell.compiler.*: don't declare stage0 ghc as dep to stdenv 2024-09-23 18:44:43 +02:00
haxe-packages.nix
impure.nix
java-packages.nix
kodi-packages.nix
linux-kernels.nix linux_4_19: drop since it will reach EOL within NixOS 24.11 2024-09-21 19:11:50 -06:00
lua-packages.nix
make-tarball.nix
metrics.nix
nim-overrides.nix
nixpkgs-basic-release-checks.nix
ocaml-packages.nix ocamlPackages.terml: init at 0.0.1 2024-09-09 21:49:27 +02:00
octave-packages.nix
packages-config.nix
perl-packages.nix perlPackages.FinanceQuote: 1.62 -> 1.63 2024-09-22 16:09:41 +09:00
php-packages.nix Merge remote-tracking branch 'origin/master' into staging-next 2024-09-04 08:53:48 +03:00
python2-packages.nix
python-aliases.nix python3{11,12}Packages.boto: drop (#343727) 2024-09-22 22:31:55 +02:00
python-packages.nix python3{11,12}Packages.boto: drop (#343727) 2024-09-22 22:31:55 +02:00
qt5-packages.nix plasma-pa: drop GConf dependency 2024-09-16 13:54:58 -06:00
qt6-packages.nix nixos/sddm: add layer-shell-qt to the wrapper when kwin is used 2024-08-27 20:50:08 +03:00
release-alternatives.nix
release-attrpaths-superset.nix
release-cross.nix
release-cuda.nix release-cuda: account for Hydra passing extra flags 2024-08-28 01:50:06 +00:00
release-haskell.nix top-level/release-haskell.nix: add jobs for cross compiled GHCs 2024-09-20 16:24:35 +02:00
release-lib.nix lib.platforms.mesaPlatforms: remove 2024-08-31 10:28:31 +02:00
release-outpaths.nix
release-python.nix
release-r.nix
release-small.nix lsh: drop 2024-08-20 12:02:12 +02:00
release.nix
ruby-packages.nix rubyPackages.rexml: 3.3.0 -> 3.3.6 2024-08-28 22:14:55 +01:00
splice.nix
stage.nix Clean up cross bootstrapping 2024-09-06 10:26:56 -04:00
unixtools.nix unixtools: use tinyxxd to serve up xxd 2024-08-30 08:23:09 -07:00
wine-packages.nix