2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gettext }:
|
2014-12-05 23:10:08 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00: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 15:35:38 +00:00
|
|
|
src = fetchFromGitHub {
|
2015-11-14 20:32:51 +00:00
|
|
|
sha256 = "1k2dx38pjzc5d624vw1cs5ipj9fprsm5vqv55agksc29m63lswnx";
|
|
|
|
rev = "f26d4837768b062a3f98fa075c791d9c8a0bb75c";
|
2015-04-07 15:35:38 +00:00
|
|
|
repo = "duff";
|
|
|
|
owner = "elmindreda";
|
2014-12-05 23:10:08 +00:00
|
|
|
};
|
|
|
|
|
2015-06-17 17:36:06 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext ];
|
2014-12-05 23:10:08 +00:00
|
|
|
|
2015-04-04 00:28:01 +00: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 15:35:38 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-04-28 08:54:58 +00: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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +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
|
|
|
};
|
|
|
|
}
|