nixpkgs/pkgs/top-level
John Ericson 5f134ec6cf Clean up cross bootstrapping
For a long time, we've had `crossLibcStdenv`, `*Cross` libc attributes,
and `*bsdCross` pre-libc package sets. This was always bad because
having "cross" things is "not declarative": the naming doesn't reflect
what packages *need* but rather how we *provide* something. This is
ugly, and creates needless friction between cross and native building.

Now, almost all of these `*Cross` attributes are gone: just these are
kept:

- Glibc's and Musl's are kept, because those packages are widely used
  and I didn't want to risk changing the native builds of those at this
  time.

- generic `libcCross`, `theadsCross`, and friends, because these relate
  to the convolulted GCC bootstrap which still needs to be redone.

The BSD and obscure Linux or freestnanding libcs have conversely all
been made to use a new `stdenvNoLibc`, which is like the old
`crossLibcStdenv` except:

1. It usable for native and cross alike

2. It named according to what it *is* ("a standard environment without
   libc but with a C compiler"), rather than some non-compositional
   jargon ("the stdenv used for building libc when cross compiling",
   yuck).

I should have done this change long ago, but I was stymied because of
"infinite recursions". The problem was that in too many cases we are
overriding `stdenv` to *remove* things we don't need, and this risks
cyles since those more minimal stdenvs are used to build things in the
more maximal stdenvs.

The solution is to pass `stage.nix` `stdenvNoCC`, so we can override to
*build up* rather than *tear down*. For now, the full `stdenv` is also
passed, so I don't need to change the native bootstraps, but I can see
this changing as we make things more uniform and clean those up.

(adapted from commit 51f1ecaa59)
(adapted from commit 1743662e55)
2024-09-06 10:26:56 -04:00
..
pkg-config gnome2.gnome_vfs: remove 2024-07-03 22:43:41 +02:00
ada-packages.nix
agda-packages.nix build-support/agda: expose mkLibraryFile 2024-07-04 14:51:30 +02:00
aliases.nix Clean up cross bootstrapping 2024-09-06 10:26:56 -04:00
all-packages.nix Clean up cross bootstrapping 2024-09-06 10:26:56 -04:00
beam-packages.nix
by-name-overlay.nix
config.nix Revert "pkgs/top-level/config.nix: nixfmt, declare options" 2024-08-05 16:44:45 +00:00
coq-packages.nix coqPackages.coinduction: init at 1.9 2024-08-07 15:44:13 +02:00
cubocore-packages.nix CuboCore.coreterminal: fix dependency on qt5 version of qtermwidget 2024-06-29 12:02:32 -03:00
cuda-packages.nix cudaPackages.writeGpuTestPython: sync the attr and the filesystem paths 2024-07-20 12:03:36 +00:00
darwin-aliases.nix darwin.cctools: add to darwin-aliases.nix 2024-07-17 22:36:19 -04:00
darwin-packages.nix darwin.cctools: add to darwin-aliases.nix 2024-07-17 22:36:19 -04:00
default.nix
dhall-packages.nix
dotnet-packages.nix
emacs-packages.nix emacs.pkgs.nongnuDevelPackages: init 2024-07-30 19:15:25 +08:00
emscripten-packages.nix
gnuradio-packages.nix
hare-third-party.nix
haskell-packages.nix Merge master into haskell-updates 2024-07-31 00:12:53 +00:00
haxe-packages.nix
impure.nix
java-packages.nix {javaPackages.compiler.openjdk18,corretto19,open{jdk,jfx}{19,20}*}: drop 2024-08-01 13:29:26 +01:00
kodi-packages.nix kodi-skyvideoitalia: init at 1.0.4 2024-06-21 21:37:44 +02:00
linux-kernels.nix Merge pull request #331717 from alyssais/linux-6.9-drop 2024-08-14 16:04:30 +02:00
lua-packages.nix treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
make-tarball.nix
metrics.nix metrics job: schedule on any machine, for now 2024-07-18 10:06:01 +02:00
nim-overrides.nix
nixpkgs-basic-release-checks.nix nixpkgs/release-checks: shut up GC 2024-07-31 10:02:18 +03:00
ocaml-packages.nix ocamlPackages.janestreet: 0.16 -> 0.17 (#329201) 2024-08-08 21:38:40 +02:00
octave-packages.nix
packages-config.nix
perl-packages.nix perlPackages.XMLLibXML: 2.0209 -> 2.0210 and apply fix for tests 2024-07-24 12:43:43 +02:00
php-packages.nix Merge pull request #334411 from piotrkwiecinski/php81-libxml-2.13 2024-08-14 16:52:44 +02:00
python2-packages.nix
python-aliases.nix Merge remote-tracking branch 'origin/master' into staging-next 2024-08-13 13:21:03 +02:00
python-packages.nix pythonPackages.senf: init at 1.5.0 2024-08-15 13:46:32 +04:00
qt5-packages.nix Merge pull request #329470 from emilazy/push-omxsrkkkvymx 2024-07-26 23:33:14 +01:00
qt6-packages.nix
release-alternatives.nix
release-attrpaths-superset.nix Remove buildFreebsd from excluded-attrnames-at-any-depth 2024-07-25 17:28:00 -07:00
release-cross.nix [squashme] do the requested changes 2024-07-19 21:32:07 -07:00
release-cuda.nix python312Packages.libgpuarray: drop 2024-08-03 22:20:45 -04:00
release-haskell.nix haskell.packages.ghc{96,98}.cabal-install: fix build of 3.12 2024-07-25 16:54:51 +02:00
release-lib.nix release-lib: remove viric from crossMaintainers [orphans] 2024-07-28 10:47:11 -03:00
release-outpaths.nix
release-python.nix release-python: update to python312, add afdko 2024-07-06 16:37:27 +02:00
release-r.nix
release-small.nix
release.nix arocc: init at 0-unstable-06-01 2024-07-27 19:43:41 -07:00
ruby-packages.nix rubyPackages.gtk3: fix build on Darwin and Linux 2024-07-25 22:08:30 -04:00
splice.nix
stage.nix Clean up cross bootstrapping 2024-09-06 10:26:56 -04:00
unixtools.nix binlore: migrate override lore to package passthru 2024-07-04 11:15:05 -05:00
wine-packages.nix