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