about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-12-16 13:49:16 +0100
committerNaïm Favier <n@monade.li>2022-12-16 13:49:16 +0100
commite19cdbebc991fa1e7e3ecd00464c848066841ccd (patch)
tree93112863d9de783581bb7c2236bb779693075b12 /pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
parent95f07a6061fd71c2f4076d483166e2b94f0bd929 (diff)
downloadnixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.tar
nixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.tar.gz
nixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.tar.bz2
nixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.tar.lz
nixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.tar.xz
nixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.tar.zst
nixlib-e19cdbebc991fa1e7e3ecd00464c848066841ccd.zip
haskell.packages.ghc902.haskell-language-server: oops
I accidentally committed a test changing `self` to `super` which makes the
build fail. We definitely want `self` here, see
https://github.com/NixOS/nixpkgs/pull/205902 for why.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
index 216648851c95..279acbeca15c 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix
@@ -109,7 +109,8 @@ self: super: {
 
   haskell-language-server = let
     # These aren't included in hackage-packages.nix because hackage2nix is configured for GHC 9.2, under which these plugins aren't supported.
-    additionalDeps = with super.haskell-language-server.scope; [ hls-haddock-comments-plugin hls-splice-plugin hls-tactics-plugin ];
+    # See https://github.com/NixOS/nixpkgs/pull/205902 for why we use `self.<package>.scope`
+    additionalDeps = with self.haskell-language-server.scope; [ hls-haddock-comments-plugin hls-splice-plugin hls-tactics-plugin ];
   in addBuildDepends additionalDeps (super.haskell-language-server.overrideScope (lself: lsuper: {
     # Needed for modern ormolu and fourmolu.
     # Apply this here and not in common, because other ghc versions offer different Cabal versions.
@@ -117,6 +118,7 @@ self: super: {
   }));
 
   # This package is marked as unbuildable on GHC 9.2, so hackage2nix doesn't include any dependencies.
+  # See https://github.com/NixOS/nixpkgs/pull/205902 for why we use `self.<package>.scope`
   hls-haddock-comments-plugin = addBuildDepends (with self.hls-haddock-comments-plugin.scope; [
     ghc-exactprint ghcide hls-plugin-api hls-refactor-plugin lsp-types unordered-containers
   ]) super.hls-haddock-comments-plugin;