Skip to content

Commit 9b8ec56

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/nixpkgs-update
# Conflicts: # overlays/bootstrap.nix
2 parents 5e82728 + 08fe0b4 commit 9b8ec56

File tree

3,152 files changed

+29858
-695954
lines changed

Some content is hidden

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

3,152 files changed

+29858
-695954
lines changed

build.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ in rec {
2626

2727
tools = pkgs.lib.optionalAttrs (ifdLevel >= 3) (
2828
pkgs.recurseIntoAttrs ({
29-
cabal-latest = tool compiler-nix-name "cabal" { inherit evalPackages; };
29+
cabal-latest = tool compiler-nix-name "cabal" ({
30+
inherit evalPackages;
31+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.10" "9.12") {
32+
cabalProjectLocal = builtins.readFile ./test/cabal.project.local;
33+
});
3034
} // pkgs.lib.optionalAttrs (__compareVersions haskell.compiler.${compiler-nix-name}.version "9.8" < 0) {
3135
hlint-latest = tool compiler-nix-name "hlint" {
3236
inherit evalPackages;
@@ -58,10 +62,10 @@ in rec {
5862
inherit evalPackages;
5963
src = pkgs.haskell-nix.sources."hls-2.2";
6064
};
61-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.10") {
62-
"hls-27" = tool compiler-nix-name "haskell-language-server" {
65+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.9") {
66+
"hls-28" = tool compiler-nix-name "haskell-language-server" {
6367
inherit evalPackages;
64-
src = pkgs.haskell-nix.sources."hls-2.7";
68+
src = pkgs.haskell-nix.sources."hls-2.8";
6569
};
6670
})
6771
);

ci.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 'supportedSystems' restricts the set of systems that we will evaluate for. Useful when you're evaluating
22
# on a machine with e.g. no way to build the Darwin IFDs you need!
3-
{ ifdLevel ? 3
3+
{ ifdLevel # This is passed in from flake.nix
44
, checkMaterialization ? false
55
, system ? builtins.currentSystem
66
, evalSystem ? builtins.currentSystem or "x86_64-linux"
@@ -73,7 +73,7 @@
7373
ghc96llvm = true;
7474
ghc98 = true;
7575
ghc98llvm = true;
76-
ghc910X = true;
76+
ghc910 = true;
7777
ghc911 = true;
7878
})));
7979
crossSystems = nixpkgsName: nixpkgs: compiler-nix-name:
@@ -149,7 +149,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
149149
// pkgs.lib.optionalAttrs (ifdLevel >= 2 && crossSystemName != "ghcjs")
150150
pkgs.haskell-nix.iserv-proxy-exes.${compiler-nix-name}
151151
// pkgs.lib.optionalAttrs (ifdLevel >= 3) {
152-
hello = (pkgs.haskell-nix.hackage-package { name = "hello"; version = "1.0.0.2"; inherit compiler-nix-name; }).getComponent "exe:hello";
152+
hello = (pkgs.haskell-nix.hackage-package { name = "hello"; version = "1.0.0.2"; inherit evalPackages compiler-nix-name; }).getComponent "exe:hello";
153153
})
154154
))
155155
)

compiler/ghc/default.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,17 @@ stdenv.mkDerivation (rec {
633633
# We could add `configured-src` as an output of the ghc derivation, but
634634
# having it as its own derivation means it can be accessed quickly without
635635
# building GHC.
636+
raw-src = stdenv.mkDerivation {
637+
name = name + "-raw-src";
638+
inherit
639+
version
640+
patches
641+
src;
642+
installPhase = ''
643+
cp -r . $out
644+
'';
645+
phases = [ "unpackPhase" "patchPhase" "installPhase"];
646+
};
636647
configured-src = stdenv.mkDerivation ({
637648
name = name + "-configured-src";
638649
inherit

flake.lock

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

flake.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"hls-2.5" = { url = "github:haskell/haskell-language-server/2.5.0.0"; flake = false; };
2929
"hls-2.6" = { url = "github:haskell/haskell-language-server/2.6.0.0"; flake = false; };
3030
"hls-2.7" = { url = "github:haskell/haskell-language-server/2.7.0.0"; flake = false; };
31+
"hls-2.8" = { url = "github:haskell/haskell-language-server/2.8.0.0"; flake = false; };
3132
hydra.url = "hydra";
3233
hackage = {
3334
url = "github:input-output-hk/hackage.nix";
@@ -94,6 +95,7 @@
9495
let
9596
callFlake = import flake-compat;
9697

98+
ifdLevel = 3;
9799
compiler = "ghc928";
98100
config = import ./config.nix;
99101

@@ -205,7 +207,7 @@
205207
stripAttrsForHydra (filterDerivations (
206208
# This is awkward.
207209
import ./ci.nix {
208-
inherit system;
210+
inherit ifdLevel system;
209211
haskellNix = self;
210212
})));
211213

@@ -247,7 +249,9 @@
247249
};
248250
in cf.defaultNix.hydraJobs;
249251
in
250-
self.allJobs.${system} // { nix-tools = nix-tools-hydraJobs.${system} or {}; }
252+
self.allJobs.${system}
253+
// lib.optionalAttrs (ifdLevel > 2)
254+
{ nix-tools = nix-tools-hydraJobs.${system} or {}; }
251255
);
252256

253257
devShells = forEachSystemPkgs (pkgs:
@@ -281,7 +285,7 @@
281285
"ghc921" "ghc922" "ghc923"])
282286
);
283287
}; in with (import nixpkgs { system = "x86_64-linux"; });
284-
traceHydraJobs (lib.recursiveUpdate flake {
288+
traceHydraJobs (lib.recursiveUpdate flake (lib.optionalAttrs (ifdLevel > 2) {
285289
hydraJobs.nix-tools = pkgs.releaseTools.aggregate {
286290
name = "nix-tools";
287291
constituents = [
@@ -296,7 +300,7 @@
296300
(writeText "gitrev" (self.rev or "0000000000000000000000000000000000000000"))
297301
];
298302
};
299-
});
303+
}));
300304

301305
# --- Flake Local Nix Configuration ----------------------------
302306
nixConfig = {

0 commit comments

Comments
 (0)