buildRustPackage: only copy executables to bin
in newer rust versions also *.rlib files are put into this directory
commite8d5af0bd8824cafe76e134b3777ac5584509e58
authorJörg Thalheim <joerg@thalheim.io>
dateSat 15 Apr 2017, 13:10 (10 years ago)
parentbe70c02
pkgs/build-support/rust/default.nix+1−3
@@ -116,9 +116,7 @@ in stdenv.mkDerivation (args // {
116116 installPhase = args.installPhase or ''
117117 runHook preInstall
118118 mkdir -p $out/bin
119− for f in $(find target/release -maxdepth 1 -type f); do
120− cp $f $out/bin
121− done;
119+ find target/release -maxdepth 1 -executable -exec cp "{}" $out/bin \;
122120 runHook postInstall
123121 '';
124122})