mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 01:17:28 +03:00
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 ''
|
||||
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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user