From 68538d36ced3a6c9bb536c7edf3e1217c41c8460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 1 Jul 2024 07:32:23 +0200 Subject: [PATCH] rustc: avoid rebuild on linux right now --- pkgs/development/compilers/rust/rustc.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 487de452b01c..a68e117658fa 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" + ]; })