git.iko.soy/typeable/nixpkgs
on master help sign in
Add duff: find duplicate files from the command line
commit51ccf09ba295fb11710526daf33a1bc1e013433d authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateSat 6 Dec 2014, 00:10 (12 years ago) parent8297e09
2 files changed+42
pkgs/tools/filesystems/duff/default.nix+40 pkgs/top-level/all-packages.nix+2
pkgs/tools/filesystems/duff/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv, fetchurl, autoconf, automake, gettext }:
2+
3+stdenv.mkDerivation rec {
4+ name = "duff-${version}";
5+ version = "0.5.2";
6+
7+ src = fetchurl {
8+ url = "https://github.com/elmindreda/duff/archive/${version}.tar.gz";
9+ sha256 = "149dd80f9758085ed199c37aa32ad869409fa5e2c8da8a51294bd64ca886e058";
10+ };
11+
12+ buildInputs = [ autoconf automake gettext ];
13+
14+ preConfigure = ''
15+ # duff is currently badly packaged, requiring us to do extra work here that
16+ # should be done upstream. If that is ever fixed, this entire phase can be
17+ # removed along with all buildInputs.
18+
19+ # gettexttize rightly refuses to run non-interactively:
20+ cp ${gettext}/bin/gettextize .
21+ substituteInPlace gettextize \
22+ --replace "read dummy" "echo (Automatically acknowledged)"
23+ ./gettextize
24+ sed 's@po/Makefile.in\( .*\)po/Makefile.in@po/Makefile.in \1@' \
25+ -i configure.ac
26+ autoreconf -i
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "Quickly find duplicate files.";
31+ homepage = http://duff.dreda.org/;
32+ license = with licenses; zlib;
33+ longDescription = ''
34+ Duff is a Unix command-line utility for quickly finding duplicates in
35+ a given set of files.
36+ '';
37+ maintainers = with maintainers; [ nckx ];
38+ platforms = with platforms; all;
39+ };
40+}
pkgs/top-level/all-packages.nix+2
@@ -1037,6 +1037,8 @@ let
10371037
10381038 dtach = callPackage ../tools/misc/dtach { };
10391039
1040+ duff = callPackage ../tools/filesystems/duff { };
1041+
10401042 duo-unix = callPackage ../tools/security/duo-unix { };
10411043
10421044 duplicity = callPackage ../tools/backup/duplicity {