From 6e6181bc89b9df5a8ea6d74bb3a45fe58293bcba Mon Sep 17 00:00:00 2001 From: Benjamin Cahill Date: Sun, 9 Jun 2013 13:34:50 -0500 Subject: [PATCH 1/2] Add rmlint, a tool for removing duplicate files --- pkgs/tools/misc/rmlint/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/tools/misc/rmlint/default.nix diff --git a/pkgs/tools/misc/rmlint/default.nix b/pkgs/tools/misc/rmlint/default.nix new file mode 100644 index 000000000000..993e20c7beba --- /dev/null +++ b/pkgs/tools/misc/rmlint/default.nix @@ -0,0 +1,19 @@ +{ fetchurl, stdenv, glibc }: + +stdenv.mkDerivation rec { + name = "rmlint-1.0.8"; + + src = fetchurl { + url = "https://github.com/downloads/sahib/rmlint/rmlint_1.0.8.tar.gz"; + sha256 = "bea39a5872b39d3596e756f242967bc5bde6febeb996fdcd63fbcf5bfdc75f01"; + }; + + makeFlags="DESTDIR=$(out)"; + + meta = { + description = "A tool to remove duplicates and other lint"; + homepage = "https://github.com/sahib/rmlint"; + platforms = stdenv.lib.platforms.linux; + license = stdenv.lib.licenses.gpl3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 66f1c4fdfa4c..a54ed4d0ca10 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1559,6 +1559,8 @@ let ripmime = callPackage ../tools/networking/ripmime {}; + rmlint = callPackage ../tools/misc/rmlint {}; + rng_tools = callPackage ../tools/security/rng-tools { }; rsnapshot = callPackage ../tools/backup/rsnapshot { From 923b3d032daeaa740bc8632de3bd78b17d2ffc46 Mon Sep 17 00:00:00 2001 From: Benjamin Cahill Date: Sun, 9 Jun 2013 14:44:06 -0500 Subject: [PATCH 2/2] rmlint: Remove unneeded dependency --- pkgs/tools/misc/rmlint/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/rmlint/default.nix b/pkgs/tools/misc/rmlint/default.nix index 993e20c7beba..a1cf21aa64a1 100644 --- a/pkgs/tools/misc/rmlint/default.nix +++ b/pkgs/tools/misc/rmlint/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, glibc }: +{ fetchurl, stdenv }: stdenv.mkDerivation rec { name = "rmlint-1.0.8";