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