···1{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
23-let version = "0.5.2"; in
004stdenv.mkDerivation {
5 name = "duff-${version}";
67 src = fetchFromGitHub {
8- sha256 = "0yfm910wjj6z0f0cg68x59ykf4ql5m49apzy8sra00f8kv4lpn53";
9- rev = version;
10 repo = "duff";
11 owner = "elmindreda";
12 };
···14 nativeBuildInputs = [ autoreconfHook gettext ];
1516 preAutoreconf = ''
17- # duff is currently badly packaged, requiring us to do extra work here that
18- # should be done upstream. If that is ever fixed, this entire phase can be
19- # removed along with all buildInputs.
20-21 # gettexttize rightly refuses to run non-interactively:
22 cp ${gettext}/bin/gettextize .
23 substituteInPlace gettextize \
···30 enableParallelBuilding = true;
3132 meta = with stdenv.lib; {
033 description = "Quickly find duplicate files";
34- homepage = http://duff.dreda.org/;
35- license = licenses.zlib;
36 longDescription = ''
37 Duff is a Unix command-line utility for quickly finding duplicates in
38 a given set of files.
39 '';
00040 maintainers = with maintainers; [ nckx ];
41- platforms = with platforms; all;
42 };
43}
···1{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
23+# The last release (0.5.2) is more than 2 years old and lacks features like -D,
4+# limiting its usefulness. Upstream appears comatose if not dead.
5+let version = "2014-07-03"; in
6stdenv.mkDerivation {
7 name = "duff-${version}";
89 src = fetchFromGitHub {
10+ sha256 = "1k2dx38pjzc5d624vw1cs5ipj9fprsm5vqv55agksc29m63lswnx";
11+ rev = "f26d4837768b062a3f98fa075c791d9c8a0bb75c";
12 repo = "duff";
13 owner = "elmindreda";
14 };
···16 nativeBuildInputs = [ autoreconfHook gettext ];
1718 preAutoreconf = ''
000019 # gettexttize rightly refuses to run non-interactively:
20 cp ${gettext}/bin/gettextize .
21 substituteInPlace gettextize \
···28 enableParallelBuilding = true;
2930 meta = with stdenv.lib; {
31+ inherit version;
32 description = "Quickly find duplicate files";
0033 longDescription = ''
34 Duff is a Unix command-line utility for quickly finding duplicates in
35 a given set of files.
36 '';
37+ homepage = http://duff.dreda.org/;
38+ license = licenses.zlib;
39+ platforms = platforms.all;
40 maintainers = with maintainers; [ nckx ];
041 };
42}