Merge pull request #34968 from timokau/rust-find
buildRustPackage: Restrict `find` to files
This commit is contained in:
commit
65e92d19d2
@ -91,7 +91,7 @@ in stdenv.mkDerivation (args // {
|
|||||||
installPhase = args.installPhase or ''
|
installPhase = args.installPhase or ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
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
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user