Skip to content

Commit 100b53a

Browse files
tetomergify[bot]michaelpj
authored
build(nix): ghc922 -> ghc923 (#3049)
* build(nix): ghc922 -> ghc923 bumped nixpkgs and add support for ghc923 (replacing ghc922) * fixes * fixing for ghc90? Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Michael Peyton Jones <[email protected]>
1 parent 41b1085 commit 100b53a

File tree

5 files changed

+35
-33
lines changed

5 files changed

+35
-33
lines changed

cabal.project

+1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ allow-newer:
6767
----------
6868
hiedb:base,
6969

70+
ekg-core,
7071
ekg-wai:time

configuration-ghc-90.nix

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ let
1919
ptr-poker = hself.callCabal2nix "ptr-poker" inputs.ptr-poker { };
2020

2121
ghc-lib = hself.ghc-lib_9_2_2_20220307;
22-
ghc-lib-parser = hself.ghc-lib-parser_9_2_2_20220307;
23-
ghc-lib-parser-ex = hself.ghc-lib-parser-ex_9_2_0_3;
22+
ghc-lib-parser = hself.ghc-lib-parser_9_2_3_20220709;
23+
ghc-lib-parser-ex = hself.ghc-lib-parser-ex_9_2_0_4;
2424

2525
Cabal = hself.Cabal_3_6_3_0;
26-
ormolu = hself.ormolu_0_4_0_0;
26+
ormolu = hself.ormolu_0_5_0_0;
2727
fourmolu = hself.fourmolu_0_6_0_0;
28-
2928
# Hlint is still broken
3029
hlint = doJailbreak (hself.callCabal2nix "hlint" inputs.hlint-34 { });
3130

configuration-ghc-92.nix

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ let
2929
# Hlint is still broken
3030
hlint = doJailbreak (hself.callCabal2nix "hlint" inputs.hlint { });
3131

32+
stylish-haskell = appendConfigureFlag hsuper.stylish-haskell "-fghc-lib";
33+
3234
# Re-generate HLS drv excluding some plugins
3335
haskell-language-server =
3436
hself.callCabal2nixWithOptions "haskell-language-server" ./.

flake.lock

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+8-8
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
url = "https://hackage.haskell.org/package/ptr-poker-0.1.2.8/ptr-poker-0.1.2.8.tar.gz";
7777
flake = false;
7878
};
79-
stylish-haskell-01220 = {
80-
url = "https://hackage.haskell.org/package/stylish-haskell-0.12.2.0/stylish-haskell-0.12.2.0.tar.gz";
79+
stylish-haskell = {
80+
url = "https://hackage.haskell.org/package/stylish-haskell-0.14.2.0/stylish-haskell-0.14.2.0.tar.gz";
8181
flake = false;
8282
};
8383
implicit-hie-cradle = {
@@ -213,7 +213,7 @@
213213
};
214214

215215
ghc902Config = (import ./configuration-ghc-90.nix) { inherit pkgs inputs; };
216-
ghc922Config = (import ./configuration-ghc-92.nix) { inherit pkgs inputs; };
216+
ghc923Config = (import ./configuration-ghc-92.nix) { inherit pkgs inputs; };
217217

218218
# GHC versions
219219
# While HLS still works fine with 8.10 GHCs, we only support the versions that are cached
@@ -222,12 +222,12 @@
222222
ghcVersion = "ghc" + (pkgs.lib.replaceStrings ["."] [""] pkgs.haskellPackages.ghc.version);
223223
cases = {
224224
ghc902 = ghc902Config.tweakHpkgs (pkgs.hlsHpkgs "ghc902");
225-
ghc922 = ghc922Config.tweakHpkgs (pkgs.hlsHpkgs "ghc922");
225+
ghc923 = ghc923Config.tweakHpkgs (pkgs.hlsHpkgs "ghc923");
226226
};
227227
in { default = cases."${ghcVersion}"; } // cases;
228228

229229
ghc902 = supportedGHCs.ghc902;
230-
ghc922 = supportedGHCs.ghc922;
230+
ghc923 = supportedGHCs.ghc923;
231231
ghcDefault = supportedGHCs.default;
232232

233233
# For markdown support
@@ -359,20 +359,20 @@
359359
simpleDevShells = {
360360
haskell-language-server-dev = mkDevShell ghcDefault "cabal.project";
361361
haskell-language-server-902-dev = mkDevShell ghc902 "cabal.project";
362-
haskell-language-server-922-dev = mkDevShell ghc922 "cabal.project";
362+
haskell-language-server-923-dev = mkDevShell ghc923 "cabal.project";
363363
};
364364

365365
# Developement shell, haskell packages are also provided by nix
366366
nixDevShells = {
367367
haskell-language-server-dev-nix = mkDevShellWithNixDeps ghcDefault "cabal.project";
368368
haskell-language-server-902-dev-nix = mkDevShellWithNixDeps ghc902 "cabal.project";
369-
haskell-language-server-922-dev-nix = mkDevShellWithNixDeps ghc922 "cabal.project";
369+
haskell-language-server-923-dev-nix = mkDevShellWithNixDeps ghc923 "cabal.project";
370370
};
371371

372372
allPackages = {
373373
haskell-language-server = mkExe ghcDefault;
374374
haskell-language-server-902 = mkExe ghc902;
375-
haskell-language-server-922 = mkExe ghc922;
375+
haskell-language-server-923 = mkExe ghc923;
376376
};
377377

378378
devShells = simpleDevShells // nixDevShells // {

0 commit comments

Comments
 (0)