From 489620f05c8270018109270d3ab070a25e7b25e0 Mon Sep 17 00:00:00 2001 From: Marc Weber <marco-oweber@gmx.de> Date: Tue, 28 Oct 2008 11:56:43 +0000 Subject: [PATCH] added fdupes-1.40 (utility to find duplicate files) provided by Marco Maggesi svn path=/nixpkgs/trunk/; revision=13134 --- pkgs/tools/misc/fdupes/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/misc/fdupes/default.nix diff --git a/pkgs/tools/misc/fdupes/default.nix b/pkgs/tools/misc/fdupes/default.nix new file mode 100644 index 000000000000..868ea6e4b5d6 --- /dev/null +++ b/pkgs/tools/misc/fdupes/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "fdupes-1.40"; + src = fetchurl { + url = http://premium.caribe.net/~adrian2/programs/fdupes-1.40.tar.gz; + sha256 = "1ryxpckgrmqa4y7nx9a9xpg4z1r00k11kc1cm7lqv87l9g293vg1"; + }; + + installPhase = '' + mkdir -p $out/{bin,man/man1} + make INSTALLDIR=$out/bin MANPAGEDIR=$out/man install + ''; + + 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://premium.caribe.net/~adrian2/fdupes.html; + license = "MIT"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6245310474ac..67fe5f188af4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7109,6 +7109,10 @@ let inherit (gtkLibs) gtk; }; + fdupes = import ../tools/misc/fdupes { + inherit fetchurl stdenv; + }; + feh = import ../applications/graphics/feh { inherit fetchurl stdenv x11 imlib2 libjpeg libpng; };