3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/stdenv/custom/default.nix

23 lines
578 B
Nix
Raw Normal View History

{ lib, allPackages
, system, platform, crossSystem, config
}:
assert crossSystem == null;
rec {
vanillaStdenv = import ../. {
inherit lib allPackages system platform crossSystem;
# Remove config.replaceStdenv to ensure termination.
config = builtins.removeAttrs config [ "replaceStdenv" ];
};
buildPackages = allPackages {
inherit system platform crossSystem config;
# It's OK to change the built-time dependencies
allowCustomOverrides = true;
stdenv = vanillaStdenv;
};
stdenvCustom = config.replaceStdenv { pkgs = buildPackages; };
}