···11{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
2233-let version = "0.5.2"; in
33+# The last release (0.5.2) is more than 2 years old and lacks features like -D,
44+# limiting its usefulness. Upstream appears comatose if not dead.
55+let version = "2014-07-03"; in
46stdenv.mkDerivation {
57 name = "duff-${version}";
6879 src = fetchFromGitHub {
88- sha256 = "0yfm910wjj6z0f0cg68x59ykf4ql5m49apzy8sra00f8kv4lpn53";
99- rev = version;
1010+ sha256 = "1k2dx38pjzc5d624vw1cs5ipj9fprsm5vqv55agksc29m63lswnx";
1111+ rev = "f26d4837768b062a3f98fa075c791d9c8a0bb75c";
1012 repo = "duff";
1113 owner = "elmindreda";
1214 };
···1416 nativeBuildInputs = [ autoreconfHook gettext ];
15171618 preAutoreconf = ''
1717- # duff is currently badly packaged, requiring us to do extra work here that
1818- # should be done upstream. If that is ever fixed, this entire phase can be
1919- # removed along with all buildInputs.
2020-2119 # gettexttize rightly refuses to run non-interactively:
2220 cp ${gettext}/bin/gettextize .
2321 substituteInPlace gettextize \
···3028 enableParallelBuilding = true;
31293230 meta = with stdenv.lib; {
3131+ inherit version;
3332 description = "Quickly find duplicate files";
3434- homepage = http://duff.dreda.org/;
3535- license = licenses.zlib;
3633 longDescription = ''
3734 Duff is a Unix command-line utility for quickly finding duplicates in
3835 a given set of files.
3936 '';
3737+ homepage = http://duff.dreda.org/;
3838+ license = licenses.zlib;
3939+ platforms = platforms.all;
4040 maintainers = with maintainers; [ nckx ];
4141- platforms = with platforms; all;
4241 };
4342}