2015-04-04 01:28:01 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, gettext }:
|
2014-12-05 23:10:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "duff-${version}";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/elmindreda/duff/archive/${version}.tar.gz";
|
|
|
|
sha256 = "149dd80f9758085ed199c37aa32ad869409fa5e2c8da8a51294bd64ca886e058";
|
|
|
|
};
|
|
|
|
|
2015-04-04 01:28:01 +01:00
|
|
|
buildInputs = [ 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
|
|
|
# duff is currently badly packaged, requiring us to do extra work here that
|
|
|
|
# should be done upstream. If that is ever fixed, this entire phase can be
|
|
|
|
# removed along with all buildInputs.
|
|
|
|
|
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Quickly find duplicate files.";
|
|
|
|
homepage = http://duff.dreda.org/;
|
|
|
|
license = with licenses; zlib;
|
|
|
|
longDescription = ''
|
|
|
|
Duff is a Unix command-line utility for quickly finding duplicates in
|
|
|
|
a given set of files.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
platforms = with platforms; all;
|
|
|
|
};
|
|
|
|
}
|