mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
haskell-ng: make overrideScope respect the default lookup scope
Build environments created by overrideScope lost the ability to find packages outside of the Haskell package set without help. This patch remedies this issue. Fixes https://github.com/NixOS/nixpkgs/issues/6192.
This commit is contained in:
parent
a14966e827
commit
807146cf75
@ -42,11 +42,11 @@ let
|
||||
});
|
||||
|
||||
callPackageWithScope = scope: drv: args: (stdenv.lib.callPackageWith scope drv args) // {
|
||||
overrideScope = f: callPackageWithScope (fix (extend scope.__unfix__ f)) drv args;
|
||||
overrideScope = f: callPackageWithScope (mkScope (fix (extend scope.__unfix__ f))) drv args;
|
||||
};
|
||||
|
||||
defaultScope = pkgs // pkgs.xlibs // pkgs.gnome // self;
|
||||
callPackage = drv: args: callPackageWithScope defaultScope drv args;
|
||||
mkScope = scope: pkgs // pkgs.xlibs // pkgs.gnome // scope;
|
||||
callPackage = drv: args: callPackageWithScope (mkScope self) drv args;
|
||||
|
||||
in
|
||||
import ./hackage-packages.nix { inherit pkgs stdenv callPackage; } self // {
|
||||
|
Loading…
Reference in New Issue
Block a user