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.
This commit is contained in:
Travis A. Everett 2020-05-27 19:04:55 -05:00 committed by Frederik Rietdijk
parent 8bbc4b0361
commit e0ac44ef45

View file

@ -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
];