Skip to content

Commit 41e9e02

Browse files
Try #1032:
2 parents 5a565b9 + 0947f3f commit 41e9e02

File tree

78 files changed

+12127
-93
lines changed

Some content is hidden

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

78 files changed

+12127
-93
lines changed

ci.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
ghc884 = true;
3131
ghc8104 = true;
3232
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "unstable") {
33-
ghc884 = true;
33+
ghc884 = false;
3434
ghc8104 = true;
35+
ghc901 = true;
3536
ghc810420210212 = false;
3637
});
3738
systems = nixpkgs: nixpkgs.lib.filterAttrs (_: v: builtins.elem v supportedSystems) {

compiler/ghc/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let self =
88

99
# build-tools
1010
, bootPkgs
11+
, buildPackages
1112
, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4, sphinx, numactl, elfutils
1213
, autoreconfHook
1314
, bash
@@ -100,6 +101,9 @@ let
100101
CrossCompilePrefix = ${targetPrefix}
101102
'' + lib.optionalString isCrossTarget ''
102103
Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
104+
''
105+
# GHC 9.0.1 fails to compile for musl unless HADDOC_DOCS = NO
106+
+ lib.optionalString (isCrossTarget || (targetPlatform.isMusl && builtins.compareVersions ghc-version "9.0.1" >= 0)) ''
103107
HADDOCK_DOCS = NO
104108
BUILD_SPHINX_HTML = NO
105109
BUILD_SPHINX_PDF = NO
@@ -337,6 +341,11 @@ stdenv.mkDerivation (rec {
337341
inherit (ghc.meta) license platforms;
338342
};
339343

344+
# Needed for `haddock` to work on source that includes non ASCII chars
345+
LANG = "en_US.UTF-8";
346+
LC_ALL = "en_US.UTF-8";
347+
} // lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc") {
348+
LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive";
340349
} // lib.optionalAttrs targetPlatform.useAndroidPrebuilt {
341350
dontStrip = true;
342351
dontPatchELF = true;

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-9.0.1-x86_64-linux/ghc-pkg/dump-global

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

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-9.0.1-x86_64-linux/ghc-pkg/version

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

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-9.0.1-x86_64-linux/ghc/info

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

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-9.0.1-x86_64-linux/ghc/numeric-version

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

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-9.0.1-x86_64-linux/ghc/supported-languages

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

materialized/dummy-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-9.0.1-x86_64-linux/ghc/version

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

0 commit comments

Comments
 (0)