From c32b68eb83f4b0aa39e468f74418fbcc4b36c09c Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 21 Feb 2024 17:23:38 -0600 Subject: [PATCH] nix: overwrite, don't append, to `$RUSTFLAGS` This matches the behavior of the actual `nix build` more closely, and might also help Anton, since he was debugging some recompilation issues on his machine, where `RUSTFLAGS` might have become inconsistent due to VS Code. Signed-off-by: Austin Seipp --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 66cb2f8fa0..264dd1d1f4 100644 --- a/flake.nix +++ b/flake.nix @@ -161,7 +161,7 @@ export ZSTD_SYS_USE_PKG_CONFIG=1 export LIBSSH2_SYS_USE_PKG_CONFIG=1 '' + pkgs.lib.optionalString useMoldLinker '' - export RUSTFLAGS="-C link-arg=-fuse-ld=mold $RUSTFLAGS" + export RUSTFLAGS="-C link-arg=-fuse-ld=mold" ''; }; }));