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 <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2024-02-21 17:23:38 -06:00
parent f97e929cbf
commit c32b68eb83

View file

@ -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"
'';
};
}));