From e0ac44ef45212aadb4ef320dfe5560d4b8fa90de Mon Sep 17 00:00:00 2001 From: "Travis A. Everett" Date: Wed, 27 May 2020 19:04:55 -0500 Subject: [PATCH] findutils: fix undeclared xargs dep on echo When invoked without a command parameter, xargs runs echo from PATH. This change patches xargs to use a specific Nix-built echo. --- pkgs/tools/misc/findutils/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/findutils/default.nix b/pkgs/tools/misc/findutils/default.nix index 1b69b80be70f..230e401ef82f 100644 --- a/pkgs/tools/misc/findutils/default.nix +++ b/pkgs/tools/misc/findutils/default.nix @@ -11,6 +11,10 @@ stdenv.mkDerivation rec { sha256 = "16kqz9yz98dasmj70jwf5py7jk558w96w0vgp3zf9xsqk3gzpzn5"; }; + postPatch = '' + substituteInPlace xargs/xargs.c --replace 'char default_cmd[] = "echo";' 'char default_cmd[] = "${coreutils}/bin/echo";' + ''; + patches = [ ./no-install-statedir.patch ];