diff options
author | Jan Malakhovski <oxij@oxij.org> | 2015-09-18 10:55:19 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2015-09-18 22:31:23 +0000 |
commit | 6640a241d229d9fb680abfb64b0015303cd1d9aa (patch) | |
tree | e2c506372928367358d84a852a45a2011b2864c6 /pkgs/tools/misc/fdupes | |
parent | c8ea6c07c655ba70cf46c52063276bfcfa5b1643 (diff) |
fdupes: switch to fdupes-jody patch set
This adds a lot of useful features implemented in a reasonable way (unlike debian patches).
Diffstat (limited to 'pkgs/tools/misc/fdupes')
-rw-r--r-- | pkgs/tools/misc/fdupes/default.nix | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/pkgs/tools/misc/fdupes/default.nix b/pkgs/tools/misc/fdupes/default.nix index 64a45b975b0f6..0ab97a7e6715f 100644 --- a/pkgs/tools/misc/fdupes/default.nix +++ b/pkgs/tools/misc/fdupes/default.nix @@ -1,24 +1,27 @@ -{stdenv, fetchurl}: +{stdenv, fetchFromGitHub}: -stdenv.mkDerivation { - name = "fdupes-1.51"; - src = fetchurl { - url = https://github.com/adrianlopezroche/fdupes/archive/fdupes-1.51.tar.gz; - sha256 = "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn"; - }; +stdenv.mkDerivation rec { + name = "fdupes-20150902"; - # workaround: otherwise make install fails (should be fixed in trunk) - preInstall = "mkdir -p $out/bin $out/man/man1"; + src = fetchFromGitHub { + owner = "jbruchon"; + repo = "fdupes-jody"; + rev = "414b1fd64c0a739d4c52228eb72487782855b939"; + sha256 = "1q6jcj79pljm1f24fqgk8x53xz2x0p1986znw75iljxqyzbvw0ap"; + }; makeFlags = "PREFIX=\${out}"; meta = { description = "Identifies duplicate files residing within specified directories"; longDescription = '' - FDUPES uses md5sums and then a byte by byte comparison to finde duplicate - files within a set of directories. + FDUPES compares inodes' stats, hash sums, and byte by byte file + contents to find duplicate files within a set of directories and + then applies various actions to those sets, e.g.: + * remove some of the duplicates, + * turn all the files in a set into hardlinks. ''; - homepage = http://code.google.com/p/fdupes/; + homepage = src.meta.homepage; license = stdenv.lib.licenses.mit; platforms = stdenv.lib.platforms.all; maintainers = [ |