diff --git a/pkgs/development/haskell-modules/default.nix b/pkgs/development/haskell-modules/default.nix index 6bfe92e43385..62d74b0ac7d4 100644 --- a/pkgs/development/haskell-modules/default.nix +++ b/pkgs/development/haskell-modules/default.nix @@ -46,7 +46,8 @@ let }; mkScope = scope: pkgs // pkgs.xlibs // pkgs.gnome // scope; - callPackage = drv: args: callPackageWithScope (mkScope self) drv args; + defaultScope = mkScope self; + callPackage = drv: args: callPackageWithScope defaultScope drv args; in import ./hackage-packages.nix { inherit pkgs stdenv callPackage; } self // {