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:
parent
c41cc9e762
commit
c577eb6892
@ -13933,9 +13933,11 @@ with pkgs;
|
||||
|
||||
wrapNonDeterministicGcc = stdenv: ccWrapper:
|
||||
if ccWrapper.isGNU then ccWrapper.overrideAttrs(old: {
|
||||
cc = old.cc.override {
|
||||
reproducibleBuild = false;
|
||||
profiledCompiler = with stdenv; (!isDarwin && hostPlatform.isx86);
|
||||
env = old.env // {
|
||||
cc = old.env.cc.override {
|
||||
reproducibleBuild = false;
|
||||
profiledCompiler = with stdenv; (!isDarwin && hostPlatform.isx86);
|
||||
};
|
||||
};
|
||||
}) else ccWrapper;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user