File tree Expand file tree Collapse file tree 13 files changed +77
-33
lines changed
nix-tools/nix-tools/lib-cabal2nix Expand file tree Collapse file tree 13 files changed +77
-33
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ jobs:
239
239
- name : " Check hix -- run github:haskell/cabal/3.10#cabal-install:exe:cabal -- --version"
240
240
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"
241
241
242
- nix-tools :
242
+ check- nix-tools :
243
243
runs-on : [self-hosted, linux]
244
244
steps :
245
245
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
- name : Wait for Hydra Build
1
+ name : Update Static Nix Tools
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ in rec {
57
57
inherit evalPackages ;
58
58
src = pkgs . haskell-nix . sources . "hls-2.2" ;
59
59
} ;
60
- } // pkgs . lib . optionalAttrs ( ghcFromTo "9.0" "9.10.2 " ) {
60
+ } // pkgs . lib . optionalAttrs ( ghcFromTo "9.0" "9.13 " ) {
61
61
"hls" = tool compiler-nix-name "haskell-language-server" {
62
62
inherit evalPackages ;
63
- src = pkgs . haskell-nix . sources . "hls-2.10 " ;
63
+ src = pkgs . haskell-nix . sources . "hls-2.11 " ;
64
64
} ;
65
65
} )
66
66
) ;
Original file line number Diff line number Diff line change 109
109
110
110
# If we don't have any source files, no need to run haddock
111
111
[[ -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
+
112
118
$SETUP_HS haddock \
113
119
"--html" \
114
120
${ lib . optionalString ( haskellLib . isTest componentId ) "--tests" } \
Original file line number Diff line number Diff line change 66
66
# from here (so that is no longer cached) also remove ./materialized/ghcXXX.
67
67
# Update supported-ghc-versions.md to reflect any changes made here.
68
68
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 ;
73
73
} // nixpkgs . lib . optionalAttrs ( nixpkgsName == "unstable" ) {
74
74
ghc96 = true ;
75
75
ghc98 = true ;
Original file line number Diff line number Diff line change 21
21
"hls-2.8" = { url = "github:haskell/haskell-language-server/2.8.0.0" ; flake = false ; } ;
22
22
"hls-2.9" = { url = "github:haskell/haskell-language-server/2.9.0.1" ; flake = false ; } ;
23
23
"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 ; } ;
24
25
"hls" = { url = "github:haskell/haskell-language-server" ; flake = false ; } ;
25
26
hackage = {
26
27
url = "github:input-output-hk/hackage.nix" ;
Original file line number Diff line number Diff line change 465
465
cabal_file=${ ghcSrc } /compiler/${ name } .cabal.in
466
466
elif [ -f ${ ghcSrc } /libraries/${ name } /${ name } .cabal.in ]; then
467
467
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
468
470
fi
469
471
if [[ "$cabal_file" != "" ]]; then
470
472
fixed_cabal_file=$(mktemp)
Original file line number Diff line number Diff line change 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 {
2
2
aarch64-darwin = pkgs . fetchurl {
3
3
name = "aarch64-darwin-nix-tools-static" ;
4
4
url = "${ baseurl } aarch64-darwin-nix-tools-static.zip" ;
5
- sha256 = "sha256-SlTAgNj3YjZpobl/aIZLI+o8EpxznW5X90UBTtHDwbw =" ;
5
+ sha256 = "sha256-umzS70a8h1pigTzBJdkChEPqIk83NXfi02zIDQIDrzI =" ;
6
6
} ;
7
7
x86_64-darwin = pkgs . fetchurl {
8
8
name = "x86_64-darwin-nix-tools-static" ;
9
9
url = "${ baseurl } x86_64-darwin-nix-tools-static.zip" ;
10
- sha256 = "sha256-6m2f3DoARyoxR5Fh+87TfVCLkewwhozVLKbUzfXvUxs =" ;
10
+ sha256 = "sha256-O0T0tI+vD5ZuozKvqlfQR93UO6p4P0HyPQDLvhUIChs =" ;
11
11
} ;
12
12
aarch64-linux = pkgs . fetchurl {
13
13
name = "aarch64-linux-nix-tools-static" ;
14
14
url = "${ baseurl } aarch64-linux-nix-tools-static.zip" ;
15
- sha256 = "sha256-MX4u23nzjByT9zcSN+HlKOAgQNtYvcuR8iOh54wR41U =" ;
15
+ sha256 = "sha256-J3z5WbEm96k25UyOK3kKRtecQvTQIORRhoROKFSULZI =" ;
16
16
} ;
17
17
x86_64-linux = pkgs . fetchurl {
18
18
name = "x86_64-linux-nix-tools-static" ;
19
19
url = "${ baseurl } x86_64-linux-nix-tools-static.zip" ;
20
- sha256 = "sha256-QzTCy7HPY5xN6VFKJcibE1gWLsT4u8OPfJHvDMK3v7M =" ;
20
+ sha256 = "sha256-CKf8Drj1UOwlAg16S4kuyVp25O7al/5YzxwrLawVnwQ =" ;
21
21
} ;
22
22
}
Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ instance {-# OVERLAPS #-} ToNixExpr a => ToNixExpr [a] where
453
453
-- condtional statements in .cabal files.
454
454
fixSystem :: String -> String
455
455
fixSystem " isJavascript" = " isJavaScript"
456
+ fixSystem " isDragonfly" = " isDragonFly"
456
457
fixSystem s = s
457
458
458
459
instance ToNixExpr ConfVar where
You can’t perform that action at this time.
0 commit comments