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