depot/third_party/nixpkgs/pkgs/tools/misc/rmlint/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
831 B
Nix

{ stdenv, fetchFromGitHub
, gettext, pkgconfig, scons
, glib, json-glib, libelf, sphinx, utillinux }:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "rmlint";
version = "2.9.0";
src = fetchFromGitHub {
owner = "sahib";
repo = "rmlint";
rev = "v${version}";
sha256 = "1b5cziam14h80xrfb285fmfrzz2rligxcpsq1xsig14xf4l2875i";
};
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 ];
};
}