diff options
author | Domen Kožar <domen@dev.si> | 2015-01-29 10:48:54 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2015-01-29 10:48:54 +0100 |
commit | 857f32dfe77bc774f51e7d88161a3a64eb0043f7 (patch) | |
tree | a93f0939fca1c0db050e420b52017818da805d89 /pkgs/tools/misc/rmlint/default.nix | |
parent | 54f0b25d92d3aafe3960c9be478a5ef8c08b2cbb (diff) | |
parent | 3ed8c422a591109e1f15e16f2fe9d13aadeca29f (diff) | |
download | nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.tar nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.tar.gz nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.tar.bz2 nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.tar.lz nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.tar.xz nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.tar.zst nixpkgs-857f32dfe77bc774f51e7d88161a3a64eb0043f7.zip |
Merge pull request #5967 from k0ral/rmlint
rmlint: 1.0.8 -> 2.0.0
Diffstat (limited to 'pkgs/tools/misc/rmlint/default.nix')
-rw-r--r-- | pkgs/tools/misc/rmlint/default.nix | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/pkgs/tools/misc/rmlint/default.nix b/pkgs/tools/misc/rmlint/default.nix index 805bcf6b01c..21643a9d11a 100644 --- a/pkgs/tools/misc/rmlint/default.nix +++ b/pkgs/tools/misc/rmlint/default.nix @@ -1,24 +1,31 @@ -{ fetchurl, stdenv }: +{ stdenv, fetchurl +, gettext, glib, json_glib, libelf, pkgconfig, scons, sphinx, utillinux }: +with stdenv.lib; stdenv.mkDerivation rec { - name = "rmlint-1.0.8"; + name = "rmlint-${version}"; + version = "2.0.0"; src = fetchurl { - url = "https://github.com/downloads/sahib/rmlint/rmlint_1.0.8.tar.gz"; - sha256 = "bea39a5872b39d3596e756f242967bc5bde6febeb996fdcd63fbcf5bfdc75f01"; + url = "https://github.com/sahib/rmlint/archive/v${version}.tar.gz"; + sha256 = "14jiswagipsmzxclcskn672ws4126p65l6hlzkkvanyv8gmpv90f"; }; - preConfigure = '' - substituteInPlace Makefile.in \ - --replace "/usr/" "/" - ''; + patches = [ ./fix-scons.patch ]; - makeFlags="DESTDIR=$(out)"; + configurePhase = "scons config"; + + buildInputs = [ gettext glib json_glib libelf pkgconfig scons sphinx utillinux ]; + + buildPhase = "scons"; + + installPhase = "scons --prefix=$out install"; 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; + description = "Extremely fast tool to remove duplicates and other lint from your filesystem."; + homepage = http://rmlint.readthedocs.org; + platforms = platforms.linux; + license = licenses.gpl3; + maintainers = [ maintainers.koral ]; }; } |