2019-03-14 05:45:48 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libnih, dbus, pam, popt }:
|
2015-03-27 01:11:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-14 05:45:48 +00:00
|
|
|
pname = "cgmanager";
|
|
|
|
version = "0.42";
|
2015-03-27 01:11:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-14 05:45:48 +00:00
|
|
|
url = "https://linuxcontainers.org/downloads/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "15np08h9jrvc1y1iafr8v654mzgsv5hshzc0n4p3pbf0rkra3h7c";
|
2015-03-27 01:11:39 +00:00
|
|
|
};
|
|
|
|
|
2015-09-18 02:24:28 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-03-14 05:45:48 +00:00
|
|
|
buildInputs = [ libnih dbus pam popt ];
|
2015-03-27 01:11:39 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-init-script=systemd"
|
2015-08-01 00:07:44 +00:00
|
|
|
"--sysconfdir=/etc"
|
2015-03-27 01:11:39 +00:00
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://linuxcontainers.org/cgmanager/introduction/;
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "A central privileged daemon that manages all your cgroups";
|
2015-03-27 01:11:39 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|