wrapNonDeterministicGcc: fix

nix-repl> legacyPackages.x86_64-linux.fastStdenv
error: The ‘env’ attribute set cannot contain any attributes passed to derivation. The following attributes are overlapping: cc
«derivation
This commit is contained in:
Artturin 2022-12-08 04:59:55 +02:00
parent c41cc9e762
commit c577eb6892

View File

@ -13933,9 +13933,11 @@ with pkgs;
wrapNonDeterministicGcc = stdenv: ccWrapper: wrapNonDeterministicGcc = stdenv: ccWrapper:
if ccWrapper.isGNU then ccWrapper.overrideAttrs(old: { if ccWrapper.isGNU then ccWrapper.overrideAttrs(old: {
cc = old.cc.override { env = old.env // {
reproducibleBuild = false; cc = old.env.cc.override {
profiledCompiler = with stdenv; (!isDarwin && hostPlatform.isx86); reproducibleBuild = false;
profiledCompiler = with stdenv; (!isDarwin && hostPlatform.isx86);
};
}; };
}) else ccWrapper; }) else ccWrapper;