2021-01-23 01:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pam, bison, flex, autoreconfHook }:
|
2010-07-09 13:15:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libcgroup";
|
2022-08-28 19:41:27 +00:00
|
|
|
version = "3.0";
|
2011-10-05 20:20:21 +00:00
|
|
|
|
2021-01-23 01:50:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-21 02:57:13 +00:00
|
|
|
fetchSubmodules = true;
|
2022-08-28 19:41:27 +00:00
|
|
|
hash = "sha256-x2yBqpr3LedtWmpZ4K1ipZxIualNJuDtC4FVGzzcQn8=";
|
2010-07-09 13:15:51 +00:00
|
|
|
};
|
2011-10-05 20:20:21 +00:00
|
|
|
|
2022-12-12 06:49:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex ];
|
|
|
|
buildInputs = [ pam ];
|
2018-10-15 20:57:08 +00:00
|
|
|
|
2017-06-25 19:18:00 +00:00
|
|
|
postPatch = ''
|
2021-01-23 01:50:56 +00:00
|
|
|
substituteInPlace src/tools/Makefile.am \
|
2017-06-25 19:18:00 +00:00
|
|
|
--replace 'chmod u+s' 'chmod +x'
|
|
|
|
'';
|
|
|
|
|
2010-07-09 13:15:51 +00:00
|
|
|
meta = {
|
2015-04-11 20:22:35 +00:00
|
|
|
description = "Library and tools to manage Linux cgroups";
|
2022-08-21 02:57:13 +00:00
|
|
|
homepage = "https://github.com/libcgroup/libcgroup";
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.lgpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2010-07-09 13:15:51 +00:00
|
|
|
};
|
|
|
|
}
|