Skip to content

Commit 43ea3db

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/nixpkgs-update
2 parents 977a984 + cbd75e3 commit 43ea3db

Some content is hidden

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

86 files changed

+3252
-31
lines changed

build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ in rec {
6262
inherit evalPackages;
6363
src = pkgs.haskell-nix.sources."hls-2.2";
6464
};
65-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.9") {
66-
"hls-28" = tool compiler-nix-name "haskell-language-server" {
65+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.11") {
66+
"hls-29" = tool compiler-nix-name "haskell-language-server" {
6767
inherit evalPackages;
68-
src = pkgs.haskell-nix.sources."hls-2.8";
68+
src = pkgs.haskell-nix.sources."hls-2.9";
6969
};
7070
})
7171
);

builder/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# tl;dr: the builder must not re-introduce any reference to the build plan.
1515

16-
{ pkgs, buildPackages, evalPackages, stdenv, lib, haskellLib, ghc, compiler-nix-name, fetchurl, nonReinstallablePkgs, hsPkgs, compiler }:
16+
{ pkgs, buildPackages, pkgsBuildBuild, evalPackages, stdenv, lib, haskellLib, ghc, compiler-nix-name, fetchurl, nonReinstallablePkgs, hsPkgs, compiler }:
1717

1818
let
1919
# Builds a single component of a package.
@@ -85,7 +85,7 @@ let
8585

8686
# Same as haskellPackages.shellFor in nixpkgs.
8787
shellFor = haskellLib.weakCallPackage pkgs ./shell-for.nix {
88-
inherit hsPkgs ghcForComponent makeConfigFiles hoogleLocal haskellLib buildPackages evalPackages compiler;
88+
inherit hsPkgs ghcForComponent makeConfigFiles hoogleLocal haskellLib pkgsBuildBuild evalPackages compiler;
8989
inherit (buildPackages) glibcLocales;
9090
};
9191

builder/shell-for.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, mkShell, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, buildPackages, evalPackages, compiler }:
1+
{ lib, stdenv, mkShell, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, pkgsBuildBuild, evalPackages, compiler }:
22

33
{ # `packages` function selects packages that will be worked on in the shell itself.
44
# These packages will not be built by `shellFor`, but their
@@ -149,7 +149,7 @@ let
149149
# inherit (hsPkgs) hoogle;
150150
} // (
151151
lib.optionalAttrs (args ? tools && args.tools ? hoogle) {
152-
hoogle = buildPackages.haskell-nix.hackage-tool (
152+
hoogle = pkgsBuildBuild.haskell-nix.hackage-tool (
153153
haskellLib.versionOrModToMods args.tools.hoogle ++ [{
154154
name = "hoogle";
155155
compiler-nix-name = compiler.nix-name;
@@ -168,12 +168,12 @@ in
168168
nativeBuildInputs = [ ghcEnv.drv ]
169169
++ nativeBuildInputs
170170
++ mkDrvArgs.nativeBuildInputs or []
171-
++ lib.attrValues (buildPackages.haskell-nix.tools' evalPackages compiler.nix-name tools)
171+
++ lib.attrValues (pkgsBuildBuild.haskell-nix.tools' evalPackages compiler.nix-name tools)
172172
# If this shell is a cross compilation shell include
173173
# wrapper script for running cabal build with appropriate args.
174174
# Includes `--with-compiler` in case the `cabal.project` file has `with-compiler:` in it.
175175
++ lib.optional (ghcEnv.targetPrefix != "") (
176-
buildPackages.writeShellScriptBin "${ghcEnv.targetPrefix}cabal" ''
176+
pkgsBuildBuild.writeShellScriptBin "${ghcEnv.targetPrefix}cabal" ''
177177
exec cabal \
178178
--with-ghc=${ghcEnv.targetPrefix}ghc \
179179
--with-compiler=${ghcEnv.targetPrefix}ghc \

flake.lock

Lines changed: 24 additions & 6 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.6" = { url = "github:haskell/haskell-language-server/2.6.0.0"; flake = false; };
2222
"hls-2.7" = { url = "github:haskell/haskell-language-server/2.7.0.0"; flake = false; };
2323
"hls-2.8" = { url = "github:haskell/haskell-language-server/2.8.0.0"; flake = false; };
24+
"hls-2.9" = { url = "github:haskell/haskell-language-server/2.9.0.0"; flake = false; };
2425
hydra.url = "hydra";
2526
hackage = {
2627
url = "github:input-output-hk/hackage.nix";

lazy-inputs/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ in {
2828
inherit ((callFlake { pkgs = final; src = ./ghc963; }).defaultNix) ghc963;
2929
inherit ((callFlake { pkgs = final; src = ./ghc964; }).defaultNix) ghc964;
3030
inherit ((callFlake { pkgs = final; src = ./ghc965; }).defaultNix) ghc965;
31+
inherit ((callFlake { pkgs = final; src = ./ghc966; }).defaultNix) ghc966;
3132
inherit ((callFlake { pkgs = final; src = ./ghc981; }).defaultNix) ghc981;
3233
inherit ((callFlake { pkgs = final; src = ./ghc982; }).defaultNix) ghc982;
3334
inherit ((callFlake { pkgs = final; src = ./ghc9101; }).defaultNix) ghc9101;

lazy-inputs/ghc966/flake.lock

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

lazy-inputs/ghc966/flake.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
description = "Lazy Input for Haskell.nix";
3+
4+
inputs = {
5+
ghc966 = {
6+
flake = false;
7+
url = "git+https://github.com/stable-haskell/ghc?ref=ghc-9.6.6-iog&submodules=1";
8+
};
9+
};
10+
11+
outputs = inputs: inputs;
12+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ let
460460
''}
461461
462462
EXPOSED_MODULES_${varname name}="$(tr '\n' ' ' <<< "$exposed_modules $reexported_modules")"
463-
DEPS_${varname name}="$(jq -r '.library."build-depends"[]|select(type=="array")[],select(type=="object").then[]' $json_cabal_file | sed 's/^\([A-Za-z0-9-]*\).*$/\1/g' | sort -u | tr '\n' ' ')"
463+
DEPS_${varname name}="$(jq -r '.library."build-depends"[]|select(type=="array")[],select(type=="object" and .if.not.flag != "vendor-filepath").then[]' $json_cabal_file | sed 's/^\([A-Za-z0-9-]*\).*$/\1/g' | sort -u | tr '\n' ' ')"
464464
VER_${varname name}="$(jq -r '.version' $json_cabal_file)"
465465
PKGS+=" ${name}"
466466
LAST_PKG="${name}"

materialized/ghc-boot-packages-nix/ghc966-aarch64/base.nix

Lines changed: 49 additions & 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)