summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/build-support/rust/fetchcargo.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/rust/fetchcargo.nix b/pkgs/build-support/rust/fetchcargo.nix
index 13d52e38337..e8465ba6162 100644
--- a/pkgs/build-support/rust/fetchcargo.nix
+++ b/pkgs/build-support/rust/fetchcargo.nix
@@ -50,7 +50,7 @@ stdenv.mkDerivation {
     # But not to break old cargoSha256, if the previous behavior was enough,
     # we don't store the config.
     if ! cmp $CARGO_CONFIG ${./fetchcargo-default-config.toml} > /dev/null; then
-      install -Dt $out/.cargo $CARGO_CONFIG;
+      install -D $CARGO_CONFIG $out/.cargo/config;
     fi;
   '';