diff options
author | Vladimír Čunát <v@cunat.cz> | 2024-07-01 07:32:23 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2024-07-01 07:32:23 +0200 |
commit | 68538d36ced3a6c9bb536c7edf3e1217c41c8460 (patch) | |
tree | 8310f491fc49fc6a474a0333046fa9a309bdcada | |
parent | 483926351354c2c97d1355553bbb392a1e4a8a9a (diff) |
rustc: avoid rebuild on linux right now
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 487de452b01c3..a68e117658fad 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -35,12 +35,6 @@ in stdenv.mkDerivation (finalAttrs: { passthru.isReleaseTarball = true; }; - hardeningDisable = optionals stdenv.cc.isClang [ - # remove once https://github.com/NixOS/nixpkgs/issues/318674 is - # addressed properly - "zerocallusedregs" - ]; - __darwinAllowLocalNetworking = true; # rustc complains about modified source files otherwise @@ -309,4 +303,10 @@ in stdenv.mkDerivation (finalAttrs: { "i686-windows" "x86_64-windows" ]; }; +} // lib.optionalAttrs stdenv.cc.isClang { # FIXME: move inside again when rebuilds are OK + hardeningDisable = optionals stdenv.cc.isClang [ + # remove once https://github.com/NixOS/nixpkgs/issues/318674 is + # addressed properly + "zerocallusedregs" + ]; }) |