2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, gettext, pkgconfig, scons
|
|
|
|
, glib, json-glib, libelf, sphinx, utillinux }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rmlint";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "2.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sahib";
|
|
|
|
repo = "rmlint";
|
|
|
|
rev = "v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "15xfkcw1bkfyf3z8kl23k3rlv702m0h7ghqxvhniynvlwbgh6j2x";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CFLAGS="-I${stdenv.lib.getDev utillinux}/include";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig sphinx gettext scons
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib json-glib libelf utillinux
|
|
|
|
];
|
|
|
|
|
|
|
|
prefixKey = "--prefix=";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Extremely fast tool to remove duplicates and other lint from your filesystem";
|
|
|
|
homepage = "https://rmlint.readthedocs.org";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.koral ];
|
|
|
|
};
|
|
|
|
}
|