1{ stdenv, fetchurl, ed }:
2
3stdenv.mkDerivation rec {
4 name = "patch-2.7.5";
5
6 src = fetchurl {
7 url = "mirror://gnu/patch/${name}.tar.xz";
8 sha256 = "16d2r9kpivaak948mxzc0bai45mqfw73m113wrkmbffnalv1b5gx";
9 };
10
11 buildInputs = stdenv.lib.optional doCheck ed;
12
13 crossAttrs = {
14 configureFlags = [ "ac_cv_func_strnlen_working=yes" ];
15 };
16
17 doCheck = true;
18
19 meta = {
20 description = "GNU Patch, a program to apply differences to files";
21
22 longDescription =
23 '' GNU Patch takes a patch file containing a difference listing
24 produced by the diff program and applies those differences to one or
25 more original files, producing patched versions.
26 '';
27
28 homepage = http://savannah.gnu.org/projects/patch;
29
30 license = stdenv.lib.licenses.gpl3Plus;
31
32 maintainers = [ ];
33 platforms = stdenv.lib.platforms.all;
34 };
35}