Skip to content

Commit 17aabb8

Browse files
committed
Simpler fix for ghc-lib-parser
1 parent 495cae2 commit 17aabb8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

modules/configuration-nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +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"];
80+
packages.ghc-lib-parser.components.library.pre-existing = ["ghc-boot-th"];
8181

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

overlays/haskell.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -790,14 +790,10 @@ 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 ++ map (p: p.pkg-name + "-" + p.pkg-version) 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;
794794
packages = final.lib.listToAttrs (map (p: {
795795
name = to-key p;
796796
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});
801797
}) (final.lib.filter (p: to-key p != p.pkg-name) plan-json.install-plan));
802798
})
803799
({lib, ...}: {

0 commit comments

Comments
 (0)