Skip to content

Commit e988cc1

Browse files
committed
Merge branch 'master' of github.com:input-output-hk/haskell.nix into circuithub
2 parents fca6361 + 86547a7 commit e988cc1

File tree

171 files changed

+19611
-16
lines changed

Some content is hidden

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

171 files changed

+19611
-16
lines changed

.github/workflows/updates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
substituters = https://cache.iog.io https://cache.zw3rk.com https://cache.nixos.org/
1919
- name: "Update pins"
2020
run: |
21-
nix flake lock --update-input hackage
22-
nix flake lock --update-input stackage
21+
nix flake update hackage
22+
nix flake update stackage
2323
- name: Commit and push changes
2424
run: |
2525
git config --local user.email "[email protected]"

ci.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
ghc92 = true;
6969
ghc94 = true;
7070
ghc96 = true;
71+
ghc96llvm = true;
7172
ghc98 = true;
73+
ghc98llvm = true;
7274
ghc98X = true;
7375
ghc99 = true;
7476
})));
@@ -77,17 +79,20 @@
7779
# of 'lib.systems.examples' are not understood between all versions
7880
let lib = nixpkgs.lib;
7981
in lib.optionalAttrs (nixpkgsName == "unstable"
82+
&& (__match ".*llvm" compiler-nix-name == null)
8083
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948"])
8184
|| (system == "aarch64-linux" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948"])
8285
|| (system == "x86_64-darwin" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948"])
8386
|| (system == "aarch64-darwin" && !builtins.elem compiler-nix-name ["ghc884" "ghc902" "ghc928" "ghc948"])
8487
)) {
8588
inherit (lib.systems.examples) ghcjs;
8689
} // lib.optionalAttrs (nixpkgsName == "unstable"
90+
&& (__match ".*llvm" compiler-nix-name == null)
8791
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc884"])
8892
|| (system == "x86_64-darwin" && builtins.elem compiler-nix-name []))) { # TODO add ghc versions when we have more darwin build capacity
8993
inherit (lib.systems.examples) mingwW64;
9094
} // lib.optionalAttrs (nixpkgsName == "unstable"
95+
&& (__match ".*llvm" compiler-nix-name == null)
9196
&& ((system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc884" "ghc8107" "ghc902" "ghc928"])
9297
|| (system == "x86_64-darwin" && builtins.elem compiler-nix-name []))) { # TODO add ghc versions when we have more darwin build capacity
9398
inherit (lib.systems.examples) ucrt64;

compiler/ghc/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ let
354354
in
355355
stdenv.mkDerivation (rec {
356356
version = ghc-version;
357-
name = "${targetPrefix}ghc-${version}";
357+
name = "${targetPrefix}ghc-${version}" + lib.optionalString (useLLVM) "-llvm";
358358

359359
inherit src configureFlags;
360360
patches = ghc-patches;
@@ -754,7 +754,7 @@ stdenv.mkDerivation (rec {
754754
--replace 'dynamic-library-dirs:' 'dynamic-library-dirs: ${libcxx}/lib ${libcxxabi}/lib'
755755
find . -name 'system*.conf*'
756756
cat mk/system-cxx-std-lib-1.0.conf
757-
'' + lib.optionalString (installStage1 && stdenv.targetPlatform.isMusl) ''
757+
'' + lib.optionalString (installStage1 && !haskell-nix.haskellLib.isCrossTarget && stdenv.targetPlatform.isMusl) ''
758758
substituteInPlace hadrian/cfg/system.config \
759759
--replace 'cross-compiling = YES' \
760760
'cross-compiling = NO'

docs/dev/nix-tools-pin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
1. Use niv to update the sources.json:
44
```shell
5-
nix flake lock --update-input nix-tools
5+
nix flake update nix-tools
66
```
77

88
2. If `nix-tools.cabal` or `plan-to-nix` have changed, check the

flake.lock

Lines changed: 6 additions & 6 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-musl-aarch64-unknown-linux-musl-ghc-9.4.8-aarch64-linux/ghc-pkg/dump-global

Lines changed: 2166 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-musl-aarch64-unknown-linux-musl-ghc-9.4.8-aarch64-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-musl-aarch64-unknown-linux-musl-ghc-9.4.8-aarch64-linux/ghc/info

Lines changed: 73 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-musl-aarch64-unknown-linux-musl-ghc-9.4.8-aarch64-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.

0 commit comments

Comments
 (0)