diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-04-15 13:10:29 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-04-15 13:26:51 +0200 |
commit | e8d5af0bd8824cafe76e134b3777ac5584509e58 (patch) | |
tree | c165425f1e1bcc2fbd72aba78121c44ccb267185 /pkgs/build-support | |
parent | be70c02461e4e9e0ff163159a85edaef6188a313 (diff) |
buildRustPackage: only copy executables to bin
in newer rust versions also *.rlib files are put into this directory
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/rust/default.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index 087bc653aa390..2275a065594fa 100644 --- a/pkgs/build-support/rust/default.nix +++ b/pkgs/build-support/rust/default.nix @@ -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 ''; }) |