buildRustPackage: only copy executables to bin

in newer rust versions also *.rlib files are put into this directory
This commit is contained in:
Jörg Thalheim 2017-04-15 13:10:29 +02:00
parent be70c02461
commit e8d5af0bd8
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -116,9 +116,7 @@ in stdenv.mkDerivation (args // {
installPhase = args.installPhase or ''
runHook preInstall
mkdir -p $out/bin
for f in $(find target/release -maxdepth 1 -type f); do
cp $f $out/bin
done;
find target/release -maxdepth 1 -executable -exec cp "{}" $out/bin \;
runHook postInstall
'';
})