Merge pull request 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
commit 65e92d19d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
pkgs/build-support/rust

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