nixpkgs/pkgs/os-specific/linux/libcgroup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
785 B
Nix
Raw Normal View History

2021-01-23 01:50:56 +00:00
{ lib, stdenv, fetchFromGitHub, pam, bison, flex, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "libcgroup";
2022-08-28 19:41:27 +00:00
version = "3.0";
2021-01-23 01:50:56 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
2022-08-28 19:41:27 +00:00
hash = "sha256-x2yBqpr3LedtWmpZ4K1ipZxIualNJuDtC4FVGzzcQn8=";
};
2022-12-12 06:49:27 +00:00
nativeBuildInputs = [ autoreconfHook bison flex ];
buildInputs = [ pam ];
postPatch = ''
2021-01-23 01:50:56 +00:00
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";
2021-01-15 14:45:37 +00:00
license = lib.licenses.lgpl2;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}