Merge pull request #34968 from timokau/rust-find
buildRustPackage: Restrict `find` to files
This commit is contained in:
commit
65e92d19d2
pkgs/build-support/rust
|
@ -91,7 +91,7 @@ in stdenv.mkDerivation (args // {
|
|||
installPhase = args.installPhase or ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
find target/release -maxdepth 1 -executable -exec cp "{}" $out/bin \;
|
||||
find target/release -maxdepth 1 -executable -type f -exec cp "{}" $out/bin \;
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in New Issue