2015-04-07 18:35:38 +03:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
|
2014-12-06 02:10:08 +03:00
|
|
|
|
2016-01-24 22:31:44 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2014-12-06 02:10:08 +03:00
|
|
|
name = "duff-${version}";
|
2016-01-24 22:31:44 +03:00
|
|
|
# The last release (0.5.2) is more than 2 years old and lacks features like -D,
|
|
|
|
# limiting its usefulness. Upstream appears comatose if not dead.
|
|
|
|
version = "2014-07-03";
|
2014-12-06 02:10:08 +03:00
|
|
|
|
2015-04-07 18:35:38 +03:00
|
|
|
src = fetchFromGitHub {
|
2015-11-14 23:32:51 +03:00
|
|
|
sha256 = "1k2dx38pjzc5d624vw1cs5ipj9fprsm5vqv55agksc29m63lswnx";
|
|
|
|
rev = "f26d4837768b062a3f98fa075c791d9c8a0bb75c";
|
2015-04-07 18:35:38 +03:00
|
|
|
repo = "duff";
|
|
|
|
owner = "elmindreda";
|
2014-12-06 02:10:08 +03:00
|
|
|
};
|
|
|
|
|
2015-06-17 20:36:06 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext ];
|
2014-12-06 02:10:08 +03:00
|
|
|
|
2015-04-04 03:28:01 +03:00
|
|
|
preAutoreconf = ''
|
2014-12-06 02:10:08 +03:00
|
|
|
# gettexttize rightly refuses to run non-interactively:
|
|
|
|
cp ${gettext}/bin/gettextize .
|
|
|
|
substituteInPlace gettextize \
|
2014-12-25 18:19:45 +03:00
|
|
|
--replace "read dummy" "echo '(Automatically acknowledged)' #"
|
2014-12-06 02:10:08 +03:00
|
|
|
./gettextize
|
|
|
|
sed 's@po/Makefile.in\( .*\)po/Makefile.in@po/Makefile.in \1@' \
|
|
|
|
-i configure.ac
|
|
|
|
'';
|
|
|
|
|
2015-04-07 18:35:38 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-06 02:10:08 +03:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 11:54:58 +03:00
|
|
|
description = "Quickly find duplicate files";
|
2014-12-06 02:10:08 +03:00
|
|
|
longDescription = ''
|
|
|
|
Duff is a Unix command-line utility for quickly finding duplicates in
|
|
|
|
a given set of files.
|
|
|
|
'';
|
2015-11-14 23:32:51 +03:00
|
|
|
homepage = http://duff.dreda.org/;
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.all;
|
2014-12-06 02:10:08 +03:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
}
|