Skip to content

Commit 495cae2

Browse files
committed
Fix ghc-lib-parser-8.10.7.20220219
1 parent c47949d commit 495cae2

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

flake.lock

Lines changed: 4 additions & 4 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"hls-2.6" = { url = "github:haskell/haskell-language-server/2.6.0.0"; flake = false; };
2323
"hls-2.7" = { url = "github:haskell/haskell-language-server/2.7.0.0"; flake = false; };
2424
"hls-2.8" = { url = "github:haskell/haskell-language-server/2.8.0.0"; flake = false; };
25-
"hls-2.9" = { url = "github:haskell/haskell-language-server/2.9.0.0"; flake = false; };
25+
"hls-2.9" = { url = "github:haskell/haskell-language-server/2.9.0.1"; flake = false; };
2626
hydra.url = "hydra";
2727
hackage = {
2828
url = "github:input-output-hk/hackage.nix";

modules/configuration-nix.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ in addPackageKeys {
7777
(fromUntil "9.2.0.0" "9.3" ../overlays/patches/ghc-lib-parser-9.2-global-unique-counters-in-rts.patch)
7878
(fromUntil "9.4.0.0" "9.7" ../overlays/patches/ghc-lib-parser-9.4-global-unique-counters-in-rts.patch)
7979
];
80+
packages."ghc-lib-parser-8.10.7.20220219".components.library.pre-existing = ["ghc-boot-th"];
8081

8182
# See https://github.com/haskell-nix/hnix/pull/1053
8283
packages.hnix.patches = [

overlays/haskell.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,15 @@ final: prev: {
790790
})
791791
({config, options, ...}: {
792792
use-package-keys = true;
793-
package-keys = map (p: p.pkg-name) plan-json.install-plan ++ map (p: to-key p) plan-json.install-plan;
793+
package-keys = map (p: p.pkg-name) plan-json.install-plan ++ map (p: to-key p) plan-json.install-plan ++ map (p: p.pkg-name + "-" + p.pkg-version) plan-json.install-plan;
794794
packages = final.lib.listToAttrs (map (p: {
795-
name = to-key p;
796-
value = final.lib.modules.mkAliasDefinitions (options.packages.${p.pkg-name});
797-
}) (final.lib.filter (p: to-key p != p.pkg-name) plan-json.install-plan));
795+
name = to-key p;
796+
value = final.lib.modules.mkAliasDefinitions (options.packages.${p.pkg-name});
797+
}) (final.lib.filter (p: to-key p != p.pkg-name) plan-json.install-plan))
798+
// final.lib.listToAttrs (map (p: {
799+
name = to-key p;
800+
value = final.lib.modules.mkAliasDefinitions (options.packages.${p.pkg-name + "-" + p.pkg-version});
801+
}) (final.lib.filter (p: to-key p != p.pkg-name) plan-json.install-plan));
798802
})
799803
({lib, ...}: {
800804
packages = final.lib.listToAttrs (map (p:

test/cabal.project.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if impl(ghc>=9.10.1)
55
-- otherwise we risk running into broken build-plans down the line.
66
allow-newer: *:base, *:template-haskell, *:bytestring, *:text, *:ghc-prim, *:deepseq, *:Cabal
77
if impl(ghc > 9.11)
8-
allow-newer: *:containers
8+
allow-newer: *:containers, time-compat:time
99
constraints: base-compat >=0.14.0, aeson >=2.2.1.0
1010

1111
-- This prevents hsc2hs from causing old versions of packages from being added to plan.json
@@ -22,7 +22,7 @@ repository head.hackage.ghc.haskell.org
2222
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
2323
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
2424
7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
25-
--sha256: sha256-j+maRnTnoCe341pX+uWMPUVqRbGDOA6w1WlnqfaO9Qc=
25+
--sha256: sha256-yyYXGnFwUr6MaUEXz6odRv+IJMCmAZioN5dz3LbY1n4=
2626

2727
repository ghcjs-overlay
2828
url: https://raw.githubusercontent.com/input-output-hk/hackage-overlay-ghcjs/d37efd733666d090bf1c83bf7d5f9cb71b1dacc1

0 commit comments

Comments
 (0)