summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libcap/pam.nix
blob: 4cefa825c8a7b4758eabf0532397094c39bec3be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{stdenv, pam, libcap}:

assert stdenv.isLinux;

stdenv.mkDerivation rec {
  name = "cap_pam.so-${libcap.version}";

  inherit (libcap) src;

  buildInputs = [ libcap pam ];

  preConfigure = "cd pam_cap";

  makeFlags = "${libcap.makeFlags} PAM_CAP=yes";

  postInstall = libcap.postinst name;
}