nixpkgs/pkgs/os-specific/linux/libcap/default.nix
Eelco Dolstra b5da9e1d55 * Fixed an impurity in libcap that causes it to fail on non-NixOS
systems: the makefile determines whether to build with PAM support
  by doing

    PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)


svn path=/nixpkgs/trunk/; revision=11285
2008-03-26 09:37:09 +00:00

19 lines
436 B
Nix

{stdenv, fetchurl, attr}:
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "libcap-2.07";
src = fetchurl {
url = mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/libcap-2.07.tar.gz;
sha256 = "1zz8nyqzb15lf31akwyzzfdhyhf9xvl9rqih90m9kypmcmc4yz5q";
};
buildInputs = [attr];
preBuild = ''
makeFlagsArray=(LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man PAM_CAP=no)
'';
}