2018-12-23 13:41:09 -08:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, gettext, pkgconfig, scons
|
|
|
|
, glib, json-glib, libelf, sphinx, utillinux }:
|
2013-06-09 11:34:50 -07:00
|
|
|
|
2015-01-25 16:08:05 -08:00
|
|
|
with stdenv.lib;
|
2013-06-09 11:34:50 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "rmlint";
|
2019-09-28 19:33:01 -07:00
|
|
|
version = "2.9.0";
|
2013-06-09 11:34:50 -07:00
|
|
|
|
2017-08-21 09:14:14 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sahib";
|
|
|
|
repo = "rmlint";
|
|
|
|
rev = "v${version}";
|
2019-09-28 19:33:01 -07:00
|
|
|
sha256 = "1b5cziam14h80xrfb285fmfrzz2rligxcpsq1xsig14xf4l2875i";
|
2013-06-09 11:34:50 -07:00
|
|
|
};
|
|
|
|
|
2018-12-23 13:41:09 -08:00
|
|
|
CFLAGS="-I${stdenv.lib.getDev utillinux}/include";
|
2015-01-25 16:08:05 -08:00
|
|
|
|
2018-12-23 13:41:09 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig sphinx gettext scons
|
2018-12-23 12:43:28 -08:00
|
|
|
];
|
2015-01-25 16:08:05 -08:00
|
|
|
|
2018-12-23 13:41:09 -08:00
|
|
|
buildInputs = [
|
|
|
|
glib json-glib libelf utillinux
|
|
|
|
];
|
2015-01-25 16:08:05 -08:00
|
|
|
|
2018-12-23 12:43:28 -08:00
|
|
|
prefixKey = "--prefix=";
|
2013-06-09 11:34:50 -07:00
|
|
|
|
|
|
|
meta = {
|
2015-04-28 01:54:58 -07:00
|
|
|
description = "Extremely fast tool to remove duplicates and other lint from your filesystem";
|
2017-08-21 09:14:14 -07:00
|
|
|
homepage = https://rmlint.readthedocs.org;
|
2015-01-25 16:08:05 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.koral ];
|
2013-06-09 11:34:50 -07:00
|
|
|
};
|
|
|
|
}
|