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:
parent
e4bfe5aac9
commit
dc53518dc3
@ -77,7 +77,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…
x
Reference in New Issue
Block a user