Skip to content

Commit 089b3fd

Browse files
committed
Merge remote-tracking branch 'origin/master' into armv7a
# Conflicts: # builder/ghc-for-component-wrapper.nix # ci.nix # flake.nix # test/gi-gtk/default.nix
2 parents ee588ac + c9a0b67 commit 089b3fd

File tree

159 files changed

+4591
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+4591
-760
lines changed

build.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ in rec {
2828
pkgs.recurseIntoAttrs ({
2929
cabal-latest = tool compiler-nix-name "cabal" ({
3030
inherit evalPackages;
31-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.10" "9.12") {
31+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.12" "9.13") {
3232
cabalProjectLocal = builtins.readFile ./test/cabal.project.local;
3333
});
3434
} // pkgs.lib.optionalAttrs (__compareVersions haskell.compiler.${compiler-nix-name}.version "9.8" < 0) {
@@ -62,7 +62,7 @@ in rec {
6262
inherit evalPackages;
6363
src = pkgs.haskell-nix.sources."hls-2.2";
6464
};
65-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.11") {
65+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.8.3" || ghcFromTo "9.10" "9.11") {
6666
"hls-29" = tool compiler-nix-name "haskell-language-server" {
6767
inherit evalPackages;
6868
src = pkgs.haskell-nix.sources."hls-2.9";
@@ -77,14 +77,14 @@ in rec {
7777
maintainer-scripts = pkgs.dontRecurseIntoAttrs {
7878
update-hackage = import ./scripts/update-hackage.nix {
7979
inherit (pkgs) stdenv lib writeScript coreutils glibc git
80-
openssh nixFlakes gawk bash curl findutils;
80+
openssh nixVersions gawk bash curl findutils;
8181
# Update scripts use the internal nix-tools (compiled with a fixed GHC version)
8282
nix-tools = haskell.nix-tools-unchecked;
8383
inherit (haskell) update-index-state-hashes cabal-issue-8352-workaround;
8484
};
8585
update-stackage = haskell.callPackage ./scripts/update-stackage.nix {
8686
inherit (pkgs) stdenv lib writeScript coreutils glibc git
87-
openssh nixFlakes gawk bash curl findutils;
87+
openssh nixVersions gawk bash curl findutils;
8888
# Update scripts use the internal nix-tools (compiled with a fixed GHC version)
8989
nix-tools = haskell.nix-tools-unchecked;
9090
inherit (haskell) cabal-issue-8352-workaround;

builder/comp-builder.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ let
197197
"--with-gcc=${pkgsBuildBuild.emscripten}/bin/emcc"
198198
"--with-ld=${pkgsBuildBuild.emscripten}/bin/emcc"
199199
]
200+
++ lib.optionals (stdenv.hostPlatform.isGhcjs && stdenv.buildPlatform.isDarwin) [
201+
"--ar-options=--format=gnu" # Avoid `--format=darwin` it can cause `section too large` errors
202+
]
200203
++ [ # other flags
201204
(disableFeature dontStrip "executable-stripping")
202205
(disableFeature dontStrip "library-stripping")

builder/ghc-for-component-wrapper.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ let
125125
done
126126
127127
''
128-
+ lib.optionalString (stdenv.targetPlatform.isMusl && builtins.compareVersions ghc.version "9.9" >0) ''
128+
+ lib.optionalString (stdenv.targetPlatform.isMusl && !haskellLib.isNativeMusl && builtins.compareVersions ghc.version "9.9" >0) ''
129+
ln -s $wrappedGhc/bin/${targetPrefix}unlit $wrappedGhc/bin/unlit
129130
ln -s $wrappedGhc/bin/${ghcCommand}-iserv $wrappedGhc/bin/ghc-iserv
130131
ln -s $wrappedGhc/bin/${ghcCommand}-iserv-prof $wrappedGhc/bin/ghc-iserv-prof
131132
''

builder/shell-for.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, mkShell, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, pkgsBuildBuild, evalPackages, compiler }:
1+
{ lib, stdenv, mkShell, glibcLocales, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, pkgsBuildBuild, evalPackages, compiler }:
22

33
{ # `packages` function selects packages that will be worked on in the shell itself.
44
# These packages will not be built by `shellFor`, but their

ci.nix

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,24 @@
7474
ghc98llvm = false;
7575
ghc910 = true;
7676
ghc910llvm = true;
77-
ghc911 = true;
77+
ghc912X = true;
78+
ghc913 = true;
7879
})));
7980
crossSystems = nixpkgsName: nixpkgs: compiler-nix-name:
8081
# We need to use the actual nixpkgs version we're working with here, since the values
8182
# of 'lib.systems.examples' are not understood between all versions
8283
let lib = nixpkgs.lib;
8384
in lib.optionalAttrs (nixpkgsName == "unstable"
8485
&& (__match ".*llvm" compiler-nix-name == null)
85-
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948"])
86-
|| (system == "aarch64-linux" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948"])
87-
|| (system == "x86_64-darwin" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948" "ghc966" "ghc982"])
88-
|| (system == "aarch64-darwin" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948" "ghc966" "ghc982"])
86+
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948"])
87+
|| (system == "aarch64-linux" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948"])
88+
|| (system == "x86_64-darwin" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948" "ghc966" "ghc982" "ghc983"])
89+
|| (system == "aarch64-darwin" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948" "ghc966" "ghc982" "ghc983"])
8990
)) {
9091
inherit (lib.systems.examples) ghcjs;
9192
} // lib.optionalAttrs (
9293
(__match ".*llvm" compiler-nix-name == null)
93-
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc91120240918"]) # Including GHC HEAD here because the patches for rts/RtsSymbols.c no longer apply and mingwW64 GHC build fails without them
94+
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc91220241014" "ghc91320241101"]) # Including GHC HEAD here because the patches for rts/RtsSymbols.c no longer apply and mingwW64 GHC build fails without them
9495
|| (system == "x86_64-darwin" && builtins.elem compiler-nix-name []))) { # TODO add ghc versions when we have more darwin build capacity
9596
inherit (lib.systems.examples) mingwW64;
9697
} // lib.optionalAttrs (nixpkgsName == "unstable"

compiler/ghc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let self =
99
# build-tools
1010
, bootPkgs
1111
, buildPackages
12-
, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4, sphinx, numactl, elfutils, libcxx, libcxxabi
12+
, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4, sphinx, numactl, elfutils, libcxx, libcxxabi ? throw "No libcxxabi"
1313
, autoreconfHook
1414
, bash
1515

flake.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)