aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/misc/findutils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/findutils/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/misc/findutils/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/findutils/default.nix b/nixpkgs/pkgs/tools/misc/findutils/default.nix
index 1b69b80be70..84dd187e1fc 100644
--- a/nixpkgs/pkgs/tools/misc/findutils/default.nix
+++ b/nixpkgs/pkgs/tools/misc/findutils/default.nix
@@ -2,6 +2,11 @@
, coreutils
}:
+# Note: this package is used for bootstrapping fetchurl, and thus
+# cannot use fetchpatch! All mutable patches (generated by GitHub or
+# cgit) that are needed here should be included directly in Nixpkgs as
+# files.
+
stdenv.mkDerivation rec {
pname = "findutils";
version = "4.7.0";
@@ -11,6 +16,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
];