mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
30 lines
810 B
Nix
30 lines
810 B
Nix
{ lib, stdenv, fetchFromGitHub, pam, bison, flex, systemdLibs, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcgroup";
|
|
version = "3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-CnejQcOyW3QzHuvsAdKe4M4XgmG9ufRaEBdO48+8ZqQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex ];
|
|
buildInputs = [ pam systemdLibs ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/tools/Makefile.am \
|
|
--replace 'chmod u+s' 'chmod +x'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Library and tools to manage Linux cgroups";
|
|
homepage = "https://github.com/libcgroup/libcgroup";
|
|
license = lib.licenses.lgpl2;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|