From 7703daea2e43df155dab55a802654f07102c51e9 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 26 Jul 2024 20:51:47 +0100 Subject: [PATCH] chore(nix): remove env vars from flake (#6058) This messes with the build cache because the locally run rust-analyzer doesn't recognise those variables and thus keeps poisoning the cache. If other Nix users want `mold`, they should set it up in their user configuration. --- scripts/nix/flake.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/nix/flake.nix b/scripts/nix/flake.nix index 23488f0af..9df762cd4 100644 --- a/scripts/nix/flake.nix +++ b/scripts/nix/flake.nix @@ -59,8 +59,6 @@ LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH"; XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS"; - CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER = "${pkgs.llvmPackages.clangUseLLVM}/bin/clang"; - CARGO_ENCODED_RUSTFLAGS = "-Clink-arg=-fuse-ld=${pkgs.mold}/bin/mold"; }; in {