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";
|
2021-01-23 01:50:56 +00:00
|
|
|
version = "0.42.2";
|
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}";
|
|
|
|
sha256 = "1h8s70lm6g7r0wj7j3xgj2g3j9fifvsy2pna6w0j3i5hh42qfms4";
|
2010-07-09 13:15:51 +00:00
|
|
|
};
|
2011-10-05 20:20:21 +00:00
|
|
|
|
2021-03-14 17:50:12 +00:00
|
|
|
buildInputs = [ pam bison flex ];
|
2021-01-23 01:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
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";
|
|
|
|
homepage = "http://libcg.sourceforge.net/";
|
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
|
|
|
};
|
|
|
|
}
|