summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaralorn <mail@maralorn.de>2024-07-07 10:40:57 +0200
committermaralorn <mail@maralorn.de>2024-07-07 17:15:24 +0200
commit4db6ab8aa6c526068b4f8a76b1aa328428e5f957 (patch)
treea72fc126c92682a5472a19c1495c3faed11311c5
parenthaskell.packages.ghc92.haskell-language-server: Fix build (diff)
downloadnixpkgs-origin/hls-less-boot-pkg-check.tar.gz
haskell-language-server: Decrease set of packages to check ABI mismatches fororigin/hls-less-boot-pkg-check
Inspired by: https://github.com/haskell/haskell-language-server/pull/3214#discussion_r979524591 It should be enough to check only for ghc and template-haskell Fixes #321569
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index 6767fe1f3482..90fcf001b0ac 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -62,7 +62,7 @@ self: super: builtins.intersectAttrs super {
# This prevents linking issues when running TH splices.
postInstall = ''
mv "$out/bin/haskell-language-server" "$out/bin/.haskell-language-server-${self.ghc.version}-unwrapped"
- BOOT_PKGS=`ghc-pkg-${self.ghc.version} --global list --simple-output`
+ BOOT_PKGS="ghc-${self.ghc.version} template-haskell-$(ghc-pkg-${self.ghc.version} --global --simple-output field template-haskell version)"
${pkgs.buildPackages.gnused}/bin/sed \
-e "s!@@EXE_DIR@@!$out/bin!" \
-e "s/@@EXE_NAME@@/.haskell-language-server-${self.ghc.version}-unwrapped/" \