mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
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:
parent
8bbc4b0361
commit
e0ac44ef45
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue