nixpkgs/pkgs/os-specific/linux/libcap/default.nix
Lluís Batlle i Rossell 9a0adf069f Updating libcap (i686-linux kde programs failed because libcap did not build there)
svn path=/nixpkgs/branches/stdenv-updates/; revision=23615
2010-09-03 12:11:33 +00:00

20 lines
472 B
Nix

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