diff --git a/pkgs/build-support/rust/import-cargo-lock.nix b/pkgs/build-support/rust/import-cargo-lock.nix index d8ae8a5be94d..0e1da7ce5f52 100644 --- a/pkgs/build-support/rust/import-cargo-lock.nix +++ b/pkgs/build-support/rust/import-cargo-lock.nix @@ -174,7 +174,7 @@ let echo Found crate ${pkg.name} at $crateCargoTOML tree=$(dirname $crateCargoTOML) - cp -prvd "$tree/" $out + cp -prvL "$tree/" $out chmod u+w $out if grep -q workspace "$out/Cargo.toml"; then