mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
buildRustPackage: only copy executables to bin
in newer rust versions also *.rlib files are put into this directory
This commit is contained in:
parent
be70c02461
commit
e8d5af0bd8
@ -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
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user