mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
37 lines
829 B
Nix
37 lines
829 B
Nix
{ stdenv, fetchFromGitHub
|
|
, gettext, pkgconfig, scons
|
|
, glib, json-glib, libelf, sphinx, utillinux }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
pname = "rmlint";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sahib";
|
|
repo = "rmlint";
|
|
rev = "v${version}";
|
|
sha256 = "1gc7gbnh0qg1kl151cv1ld87vhpm1v3pnkn7prhscdcc21jrg8nz";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|