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