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:
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
Original file line number Diff line number Diff line change 1- name : Wait for Hydra Build
1+ name : Update Static Nix Tools
22
33on :
44 push :
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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" } \
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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" ;
Original file line number Diff line number Diff line change 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)
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 {
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}
Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ instance {-# OVERLAPS #-} ToNixExpr a => ToNixExpr [a] where
453453-- condtional statements in .cabal files.
454454fixSystem :: String -> String
455455fixSystem " isJavascript" = " isJavaScript"
456+ fixSystem " isDragonfly" = " isDragonFly"
456457fixSystem s = s
457458
458459instance ToNixExpr ConfVar where
You can’t perform that action at this time.
0 commit comments