mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-24 17:43:19 +01:00
See the added comment in all-packages.nix for a more detailed
explanation. This makes the top-level GHC different from
haskellPackages.ghc (which is build->host and used for building the
package set), but more consistent with gcc, gnat etc.
Specifically, pkgsCross.${platform}.buildPackages.ghc will now be a
cross-compiler instead of a native build->build compiler.
Since this change has a slight chance of being disruptive, add a note to
the changelog.
1.2 KiB
1.2 KiB
Release 22.05 (“Quokka”, 2022.05/??)
In addition to numerous new and upgraded packages, this release has the following highlights:
- Support is planned until the end of December 2022, handing over to 22.11.
Highlights
New Services
Backward Incompatibilities
pkgs.ghcnow refers topkgs.targetPackages.haskellPackages.ghc. This only makes a difference if you are cross-compiling and will ensure thatpkgs.ghcalways runs on the host platform and compiles for the target platform (similar topkgs.gccfor example).haskellPackages.ghcstill behaves as before, running on the build platform and compiling for the host platform (similar tostdenv.cc). This means you don't have to adjust your derivations if you usehaskellPackages.callPackage, but when usingpkgs.callPackageand takingghcas an input, you should now usebuildPackages.ghcinstead to ensure cross compilation keeps working (or switch tohaskellPackages.callPackage).