about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/make-package-set.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-12-13 01:02:01 +0100
committerNaïm Favier <n@monade.li>2022-12-13 12:23:03 +0100
commit264178657fd05dfdfc53fac0a3b58e9b27279588 (patch)
tree63311438f481849877aebac77098b4ca643cf479 /pkgs/development/haskell-modules/make-package-set.nix
parent8605595bca74b15ee1dc7f264bd6ddc009e451de (diff)
downloadnixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.tar
nixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.tar.gz
nixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.tar.bz2
nixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.tar.lz
nixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.tar.xz
nixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.tar.zst
nixlib-264178657fd05dfdfc53fac0a3b58e9b27279588.zip
haskell.packages.ghc902.haskell-language-server: fix
Diffstat (limited to 'pkgs/development/haskell-modules/make-package-set.nix')
-rw-r--r--pkgs/development/haskell-modules/make-package-set.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix
index 3dd019486227..45095d7fa72c 100644
--- a/pkgs/development/haskell-modules/make-package-set.nix
+++ b/pkgs/development/haskell-modules/make-package-set.nix
@@ -93,8 +93,9 @@ let
       # Converts a returned function to a functor attribute set if necessary
       ensureAttrs = v: if builtins.isFunction v then { __functor = _: v; } else v;
 
-      # this wraps the `drv` function to add a `overrideScope` function to the result.
+      # this wraps the `drv` function to add `scope` and `overrideScope` to the result.
       drvScope = allArgs: ensureAttrs (drv allArgs) // {
+        inherit scope;
         overrideScope = f:
           let newScope = mkScope (fix' (extends f scope.__unfix__));
           # note that we have to be careful here: `allArgs` includes the auto-arguments that