mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +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 ''
|
installPhase = args.installPhase or ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for f in $(find target/release -maxdepth 1 -type f); do
|
find target/release -maxdepth 1 -executable -exec cp "{}" $out/bin \;
|
||||||
cp $f $out/bin
|
|
||||||
done;
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user