2015-04-07 16:35:38 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
|
2014-12-05 23:10:08 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "duff";
|
2016-01-24 19:31:44 +00: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-05 23:10:08 +00:00
|
|
|
|
2015-04-07 16:35:38 +01:00
|
|
|
src = fetchFromGitHub {
|
2015-11-14 20:32:51 +00:00
|
|
|
sha256 = "1k2dx38pjzc5d624vw1cs5ipj9fprsm5vqv55agksc29m63lswnx";
|
|
|
|
rev = "f26d4837768b062a3f98fa075c791d9c8a0bb75c";
|
2015-04-07 16:35:38 +01:00
|
|
|
repo = "duff";
|
|
|
|
owner = "elmindreda";
|
2014-12-05 23:10:08 +00:00
|
|
|
};
|
|
|
|
|
2015-06-17 18:36:06 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext ];
|
2014-12-05 23:10:08 +00:00
|
|
|
|
2015-04-04 01:28:01 +01:00
|
|
|
preAutoreconf = ''
|
2014-12-05 23:10:08 +00:00
|
|
|
# gettexttize rightly refuses to run non-interactively:
|
|
|
|
cp ${gettext}/bin/gettextize .
|
|
|
|
substituteInPlace gettextize \
|
2014-12-25 15:19:45 +00:00
|
|
|
--replace "read dummy" "echo '(Automatically acknowledged)' #"
|
2014-12-05 23:10:08 +00:00
|
|
|
./gettextize
|
|
|
|
sed 's@po/Makefile.in\( .*\)po/Makefile.in@po/Makefile.in \1@' \
|
|
|
|
-i configure.ac
|
|
|
|
'';
|
|
|
|
|
2015-04-07 16:35:38 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-05 23:10:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "Quickly find duplicate files";
|
2014-12-05 23:10:08 +00:00
|
|
|
longDescription = ''
|
|
|
|
Duff is a Unix command-line utility for quickly finding duplicates in
|
|
|
|
a given set of files.
|
|
|
|
'';
|
2019-11-21 23:15:58 +00:00
|
|
|
homepage = https://duff.dreda.org/;
|
2015-11-14 20:32:51 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.all;
|
2014-12-05 23:10:08 +00:00
|
|
|
};
|
|
|
|
}
|