Add an extra argument to the overrider function of applyGlobalOverrides.
This commit is contained in:
parent
f9a29887fe
commit
a6e260c91f
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ let
|
||||||
# (un-overriden) set of packages, allowing packageOverrides
|
# (un-overriden) set of packages, allowing packageOverrides
|
||||||
# attributes to refer to the original attributes (e.g. "foo =
|
# attributes to refer to the original attributes (e.g. "foo =
|
||||||
# ... pkgs.foo ...").
|
# ... pkgs.foo ...").
|
||||||
pkgs = applyGlobalOverrides pkgsInit (config.packageOverrides or (pkgs: {}));
|
pkgs = applyGlobalOverrides pkgsInit (self: config.packageOverrides or (super: {}));
|
||||||
|
|
||||||
mkOverrides = pkgsOrig: overrides: overrides //
|
mkOverrides = pkgsOrig: overrides: overrides //
|
||||||
(lib.optionalAttrs (pkgsOrig.stdenv ? overrides && crossSystem == null) (pkgsOrig.stdenv.overrides pkgsOrig));
|
(lib.optionalAttrs (pkgsOrig.stdenv ? overrides && crossSystem == null) (pkgsOrig.stdenv.overrides pkgsOrig));
|
||||||
|
@ -107,7 +107,7 @@ let
|
||||||
# in the case of cross-building, or otherwise the basic
|
# in the case of cross-building, or otherwise the basic
|
||||||
# overrided packages will not be built with the crossStdenv
|
# overrided packages will not be built with the crossStdenv
|
||||||
# adapter.
|
# adapter.
|
||||||
overrides = mkOverrides pkgsOrig (overrider pkgsOrig);
|
overrides = mkOverrides pkgsOrig (overrider pkgs pkgsOrig);
|
||||||
|
|
||||||
# The overriden, final packages.
|
# The overriden, final packages.
|
||||||
pkgs = pkgsFun pkgs overrides;
|
pkgs = pkgsFun pkgs overrides;
|
||||||
|
|
Loading…
Reference in a new issue