2011-11-24 13:48:16 +00:00
|
|
|
{ stdenv, fetchurl, pam, yacc, flex }:
|
2010-07-09 14:15:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-11 21:22:35 +01:00
|
|
|
name = "libcgroup-${version}";
|
|
|
|
version = "0.41";
|
2011-10-05 21:20:21 +01:00
|
|
|
|
2010-07-09 14:15:51 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libcg/${name}.tar.bz2";
|
2015-04-11 21:22:35 +01:00
|
|
|
sha256 = "0lgvyq37gq84sk30sg18admxaj0j0p5dq3bl6g74a1ppgvf8pqz4";
|
2010-07-09 14:15:51 +01:00
|
|
|
};
|
2011-10-05 21:20:21 +01:00
|
|
|
|
2015-04-11 21:22:35 +01:00
|
|
|
buildInputs = [ pam yacc flex ];
|
2012-07-30 18:47:38 +01:00
|
|
|
|
2017-06-25 20:18:00 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/tools/Makefile.in \
|
|
|
|
--replace 'chmod u+s' 'chmod +x'
|
|
|
|
'';
|
|
|
|
|
2010-07-09 14:15:51 +01:00
|
|
|
meta = {
|
2015-04-11 21:22:35 +01:00
|
|
|
description = "Library and tools to manage Linux cgroups";
|
|
|
|
homepage = "http://libcg.sourceforge.net/";
|
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2010-07-09 14:15:51 +01:00
|
|
|
};
|
|
|
|
}
|