buildRustPackage: Restrict find to files

`find -executable` finds everything with the executable bit set,
including directories. Thats not harmful in this scenario as `cp` won't
copy those directories, but it does result in a few warning messages.
This commit is contained in:
Timo Kaufmann 2018-02-14 17:22:11 +01:00
parent e4bfe5aac9
commit dc53518dc3

View File

@ -77,7 +77,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
'';