mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
pkgs/top-level/stage.nix: fix allowVariants with variants set
This commit is contained in:
@@ -191,15 +191,19 @@ let
|
||||
|
||||
aliases = self: super: lib.optionalAttrs config.allowAliases (import ./aliases.nix lib self super);
|
||||
|
||||
variants = import ./variants.nix {
|
||||
inherit
|
||||
lib
|
||||
nixpkgsFun
|
||||
stdenv
|
||||
overlays
|
||||
makeMuslParsedPlatform
|
||||
;
|
||||
};
|
||||
variants =
|
||||
self: super:
|
||||
lib.optionalAttrs config.allowVariants (
|
||||
import ./variants.nix {
|
||||
inherit
|
||||
lib
|
||||
nixpkgsFun
|
||||
stdenv
|
||||
overlays
|
||||
makeMuslParsedPlatform
|
||||
;
|
||||
} self super
|
||||
);
|
||||
|
||||
# stdenvOverrides is used to avoid having multiple of versions
|
||||
# of certain dependencies that were used in bootstrapping the
|
||||
|
||||
Reference in New Issue
Block a user