From dc53518dc3efb0a7152e101a75b8c3a16d44feb0 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Wed, 14 Feb 2018 17:22:11 +0100 Subject: [PATCH] buildRustPackage: Restrict `find` to files `find -executable` finds everything with the executable bit set, including directories. Thats not harmful in this scenario as `cp` won't copy those directories, but it does result in a few warning messages. --- pkgs/build-support/rust/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index 63d08e1d031..d5c8cc1ec8d 100644 --- a/pkgs/build-support/rust/default.nix +++ b/pkgs/build-support/rust/default.nix @@ -77,7 +77,7 @@ in stdenv.mkDerivation (args // { installPhase = args.installPhase or '' runHook preInstall mkdir -p $out/bin - find target/release -maxdepth 1 -executable -exec cp "{}" $out/bin \; + find target/release -maxdepth 1 -executable -type f -exec cp "{}" $out/bin \; runHook postInstall '';