at v192 43 lines 1.3 kB view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, gettext }: 2 3let version = "0.5.2"; in 4stdenv.mkDerivation { 5 name = "duff-${version}"; 6 7 src = fetchFromGitHub { 8 sha256 = "0yfm910wjj6z0f0cg68x59ykf4ql5m49apzy8sra00f8kv4lpn53"; 9 rev = version; 10 repo = "duff"; 11 owner = "elmindreda"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook gettext ]; 15 16 preAutoreconf = '' 17 # duff is currently badly packaged, requiring us to do extra work here that 18 # should be done upstream. If that is ever fixed, this entire phase can be 19 # removed along with all buildInputs. 20 21 # gettexttize rightly refuses to run non-interactively: 22 cp ${gettext}/bin/gettextize . 23 substituteInPlace gettextize \ 24 --replace "read dummy" "echo '(Automatically acknowledged)' #" 25 ./gettextize 26 sed 's@po/Makefile.in\( .*\)po/Makefile.in@po/Makefile.in \1@' \ 27 -i configure.ac 28 ''; 29 30 enableParallelBuilding = true; 31 32 meta = with stdenv.lib; { 33 description = "Quickly find duplicate files"; 34 homepage = http://duff.dreda.org/; 35 license = licenses.zlib; 36 longDescription = '' 37 Duff is a Unix command-line utility for quickly finding duplicates in 38 a given set of files. 39 ''; 40 maintainers = with maintainers; [ nckx ]; 41 platforms = with platforms; all; 42 }; 43}