Skip to content

Commit bcb20c5

Browse files
committed
Merge branch 'master' of github.com:input-output-hk/haskell.nix into circuithub
2 parents adba028 + 37f2b4b commit bcb20c5

File tree

1,264 files changed

+29481
-15772
lines changed

Some content is hidden

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

1,264 files changed

+29481
-15772
lines changed

build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ in rec {
5858
inherit evalPackages;
5959
src = pkgs.haskell-nix.sources."hls-2.2";
6060
};
61-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.8") {
62-
"hls-26" = tool compiler-nix-name "haskell-language-server" {
61+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.10") {
62+
"hls-27" = tool compiler-nix-name "haskell-language-server" {
6363
inherit evalPackages;
64-
src = pkgs.haskell-nix.sources."hls-2.6";
64+
src = pkgs.haskell-nix.sources."hls-2.7";
6565
};
6666
})
6767
);

ci.nix

Lines changed: 2 additions & 2 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"
@@ -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
@@ -30,6 +30,7 @@
3030
"hls-2.4" = { url = "github:haskell/haskell-language-server/2.4.0.1"; flake = false; };
3131
"hls-2.5" = { url = "github:haskell/haskell-language-server/2.5.0.0"; flake = false; };
3232
"hls-2.6" = { url = "github:haskell/haskell-language-server/2.6.0.0"; flake = false; };
33+
"hls-2.7" = { url = "github:haskell/haskell-language-server/2.7.0.0"; flake = false; };
3334
hydra.url = "hydra";
3435
hackage = {
3536
url = "github:input-output-hk/hackage.nix";
@@ -96,6 +97,7 @@
9697
let
9798
callFlake = import flake-compat;
9899

100+
ifdLevel = 3;
99101
compiler = "ghc928";
100102
config = import ./config.nix;
101103

@@ -207,7 +209,7 @@
207209
stripAttrsForHydra (filterDerivations (
208210
# This is awkward.
209211
import ./ci.nix {
210-
inherit system;
212+
inherit ifdLevel system;
211213
haskellNix = self;
212214
})));
213215

@@ -249,7 +251,9 @@
249251
};
250252
in cf.defaultNix.hydraJobs;
251253
in
252-
self.allJobs.${system} // { nix-tools = nix-tools-hydraJobs.${system} or {}; }
254+
self.allJobs.${system}
255+
// lib.optionalAttrs (ifdLevel > 2)
256+
{ nix-tools = nix-tools-hydraJobs.${system} or {}; }
253257
);
254258

255259
devShells = forEachSystemPkgs (pkgs:
@@ -283,7 +287,7 @@
283287
"ghc921" "ghc922" "ghc923"])
284288
);
285289
}; in with (import nixpkgs { system = "x86_64-linux"; });
286-
traceHydraJobs (lib.recursiveUpdate flake {
290+
traceHydraJobs (lib.recursiveUpdate flake (lib.optionalAttrs (ifdLevel > 2) {
287291
hydraJobs.nix-tools = pkgs.releaseTools.aggregate {
288292
name = "nix-tools";
289293
constituents = [
@@ -298,7 +302,7 @@
298302
(writeText "gitrev" (self.rev or "0000000000000000000000000000000000000000"))
299303
];
300304
};
301-
});
305+
}));
302306

303307
# --- Flake Local Nix Configuration ----------------------------
304308
nixConfig = {

0 commit comments

Comments
 (0)