1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "patchutils-0.3.3";
5
6 src = fetchurl {
7 url = "http://cyberelk.net/tim/data/patchutils/stable/${name}.tar.xz";
8 sha256 = "0g5df00cj4nczrmr4k791l7la0sq2wnf8rn981fsrz1f3d2yix4i";
9 };
10
11 patches = [ ./drop-comments.patch ]; # we would get into a cycle when using fetchpatch on this one
12
13 hardeningDisable = [ "format" ];
14
15 meta = with stdenv.lib; {
16 description = "Tools to manipulate patch files";
17 homepage = http://cyberelk.net/tim/software/patchutils;
18 license = licenses.gpl2Plus;
19 platforms = platforms.all;
20 executables = [ "combinediff" "dehtmldiff" "editdiff" "espdiff"
21 "filterdiff" "fixcvsdiff" "flipdiff" "grepdiff" "interdiff" "lsdiff"
22 "recountdiff" "rediff" "splitdiff" "unwrapdiff" ];
23 };
24}