Skip to content

Commit e72a907

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/wasm
2 parents 3d3edbd + caecf93 commit e72a907

File tree

13 files changed

+77
-33
lines changed

13 files changed

+77
-33
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ jobs:
239239
- name: "Check hix -- run github:haskell/cabal/3.10#cabal-install:exe:cabal -- --version"
240240
run: "HIX_DIR=$(mktemp -d) nix run .#hix --accept-flake-config -- run github:haskell/cabal/3.10#cabal-install:exe:cabal --accept-flake-config --override-input haskellNix . -- --version"
241241

242-
nix-tools:
242+
check-nix-tools:
243243
runs-on: [self-hosted, linux]
244244
steps:
245245
- uses: actions/checkout@v4

.github/workflows/upload-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Wait for Hydra Build
1+
name: Update Static Nix Tools
22

33
on:
44
push:

build.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ in rec {
5757
inherit evalPackages;
5858
src = pkgs.haskell-nix.sources."hls-2.2";
5959
};
60-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.10.2") {
60+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.13") {
6161
"hls" = tool compiler-nix-name "haskell-language-server" {
6262
inherit evalPackages;
63-
src = pkgs.haskell-nix.sources."hls-2.10";
63+
src = pkgs.haskell-nix.sources."hls-2.11";
6464
};
6565
})
6666
);

builder/haddock-builder.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ let
109109
110110
# If we don't have any source files, no need to run haddock
111111
[[ -n $(find . -name "*.hs" -o -name "*.lhs") ]] && {
112+
# Run any preprocessor in the custom build step
113+
$SETUP_HS build \
114+
"--with-ghc=false" \
115+
${lib.optionalString (haskellLib.isTest componentId) "--tests"} \
116+
${lib.concatStringsSep " " setupHaddockFlags} || true
117+
112118
$SETUP_HS haddock \
113119
"--html" \
114120
${lib.optionalString (haskellLib.isTest componentId) "--tests"} \

ci.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
# from here (so that is no longer cached) also remove ./materialized/ghcXXX.
6767
# Update supported-ghc-versions.md to reflect any changes made here.
6868
nixpkgs.lib.optionalAttrs (builtins.elem nixpkgsName ["R2411" "R2505"]) {
69-
ghc96 = true;
70-
ghc98 = true;
71-
ghc910 = true;
72-
ghc912 = true;
69+
ghc96 = false;
70+
ghc98 = false;
71+
ghc910 = false;
72+
ghc912 = false;
7373
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "unstable") {
7474
ghc96 = true;
7575
ghc98 = true;

flake.lock

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

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"hls-2.8" = { url = "github:haskell/haskell-language-server/2.8.0.0"; flake = false; };
2222
"hls-2.9" = { url = "github:haskell/haskell-language-server/2.9.0.1"; flake = false; };
2323
"hls-2.10" = { url = "github:haskell/haskell-language-server/2.10.0.0"; flake = false; };
24+
"hls-2.11" = { url = "github:haskell/haskell-language-server/2.11.0.0"; flake = false; };
2425
"hls" = { url = "github:haskell/haskell-language-server"; flake = false; };
2526
hackage = {
2627
url = "github:input-output-hk/hackage.nix";

lib/call-cabal-project-to-nix.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ let
465465
cabal_file=${ghcSrc}/compiler/${name}.cabal.in
466466
elif [ -f ${ghcSrc}/libraries/${name}/${name}.cabal.in ]; then
467467
cabal_file=${ghcSrc}/libraries/${name}/${name}.cabal.in
468+
elif [ -f ${ghcSrc}/utils/haddock/${name}/${name}.cabal ]; then
469+
cabal_file=${ghcSrc}/utils/haddock/${name}/${name}.cabal
468470
fi
469471
if [[ "$cabal_file" != "" ]]; then
470472
fixed_cabal_file=$(mktemp)

nix-tools-static.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
pkgs: let baseurl = "https://github.com/input-output-hk/haskell.nix/releases/download/nix-tools-0.3.2/"; in {
1+
pkgs: let baseurl = "https://github.com/input-output-hk/haskell.nix/releases/download/nix-tools-0.3.5/"; in {
22
aarch64-darwin = pkgs.fetchurl {
33
name = "aarch64-darwin-nix-tools-static";
44
url = "${baseurl}aarch64-darwin-nix-tools-static.zip";
5-
sha256 = "sha256-SlTAgNj3YjZpobl/aIZLI+o8EpxznW5X90UBTtHDwbw=";
5+
sha256 = "sha256-umzS70a8h1pigTzBJdkChEPqIk83NXfi02zIDQIDrzI=";
66
};
77
x86_64-darwin = pkgs.fetchurl {
88
name = "x86_64-darwin-nix-tools-static";
99
url = "${baseurl}x86_64-darwin-nix-tools-static.zip";
10-
sha256 = "sha256-6m2f3DoARyoxR5Fh+87TfVCLkewwhozVLKbUzfXvUxs=";
10+
sha256 = "sha256-O0T0tI+vD5ZuozKvqlfQR93UO6p4P0HyPQDLvhUIChs=";
1111
};
1212
aarch64-linux = pkgs.fetchurl {
1313
name = "aarch64-linux-nix-tools-static";
1414
url = "${baseurl}aarch64-linux-nix-tools-static.zip";
15-
sha256 = "sha256-MX4u23nzjByT9zcSN+HlKOAgQNtYvcuR8iOh54wR41U=";
15+
sha256 = "sha256-J3z5WbEm96k25UyOK3kKRtecQvTQIORRhoROKFSULZI=";
1616
};
1717
x86_64-linux = pkgs.fetchurl {
1818
name = "x86_64-linux-nix-tools-static";
1919
url = "${baseurl}x86_64-linux-nix-tools-static.zip";
20-
sha256 = "sha256-QzTCy7HPY5xN6VFKJcibE1gWLsT4u8OPfJHvDMK3v7M=";
20+
sha256 = "sha256-CKf8Drj1UOwlAg16S4kuyVp25O7al/5YzxwrLawVnwQ=";
2121
};
2222
}

nix-tools/nix-tools/lib-cabal2nix/Cabal2Nix.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ instance {-# OVERLAPS #-} ToNixExpr a => ToNixExpr [a] where
453453
-- condtional statements in .cabal files.
454454
fixSystem :: String -> String
455455
fixSystem "isJavascript" = "isJavaScript"
456+
fixSystem "isDragonfly" = "isDragonFly"
456457
fixSystem s = s
457458

458459
instance ToNixExpr ConfVar where

0 commit comments

Comments
 (0)