summary refs log tree commit diff
path: root/pkgs/tools/misc/fdupes/default.nix
blob: 41c479e414b377bfde889a62283db821548dafde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "fdupes-1.50-PR2";
  src = fetchurl {
    url = http://fdupes.googlecode.com/files/fdupes-1.50-PR2.tar.gz;
    sha256 = "068nxcn3xilaphq53sywli9ndydy4gijfi2mz7h45kpy0q9cgwjs";
  };

  # workaround: otherwise make install fails (should be fixed in trunk)
  preInstall = "mkdir -p $out/bin $out/man/man1";

  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.
    '';
    homepage = http://code.google.com/p/fdupes/;
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.all;
    maintainers = [
      stdenv.lib.maintainers.z77z
    ];
  };
}