2024-07-31 10:19:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, e2fsprogs, openldap, pkg-config, binlore, linuxquota }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "4.09";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "quota";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/linuxquota/quota-${version}.tar.gz";
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-nNrKFUvJKvwxF/Dl9bMgjdX4RYOvHPBhw5uqCiuxQvk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" "man" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ e2fsprogs openldap ];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
passthru.binlore.out = binlore.synthesize linuxquota ''
|
|
|
|
execer cannot bin/quota
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools to manage kernel-level quotas in Linux";
|
|
|
|
homepage = "https://sourceforge.net/projects/linuxquota/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Plus; # With some files being BSD as an exception
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
};
|
|
|
|
}
|