mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
31 lines
785 B
Nix
31 lines
785 B
Nix
{ lib, stdenv, fetchFromGitHub, pam, bison, flex, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcgroup";
|
|
version = "3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-x2yBqpr3LedtWmpZ4K1ipZxIualNJuDtC4FVGzzcQn8=";
|
|
};
|
|
|
|
buildInputs = [ pam bison flex ];
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|