2015-04-07 16:35:38 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
|
2014-12-05 23:10:08 +00:00
|
|
|
|
2015-04-07 16:35:38 +01:00
|
|
|
let version = "0.5.2"; in
|
2014-12-05 23:10:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "duff-${version}";
|
|
|
|
|
2015-04-07 16:35:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "0yfm910wjj6z0f0cg68x59ykf4ql5m49apzy8sra00f8kv4lpn53";
|
|
|
|
rev = version;
|
|
|
|
repo = "duff";
|
|
|
|
owner = "elmindreda";
|
2014-12-05 23:10:08 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
homepage = http://duff.dreda.org/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.zlib;
|
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.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
platforms = with platforms; all;
|
|
|
|
};
|
|
|
|
}
|