Merge pull request #34968 from timokau/rust-find

buildRustPackage: Restrict `find` to files
This commit is contained in:
Daiderd Jordan
2018-04-23 21:29:08 +02:00
committed by GitHub

View File

@@ -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
'';