2010-09-03 14:11:33 +02:00
|
|
|
{stdenv, fetchurl, attr, perl}:
|
2006-12-22 20:22:57 +01:00
|
|
|
|
2007-05-16 16:54:28 +02:00
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2006-12-22 20:22:57 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-09-03 14:11:33 +02:00
|
|
|
name = "libcap-2.19";
|
2008-02-29 10:42:12 +01:00
|
|
|
|
2006-12-22 20:22:57 +01:00
|
|
|
src = fetchurl {
|
2010-09-03 14:11:33 +02:00
|
|
|
url = mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/libcap-2.19.tar.gz;
|
|
|
|
sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
|
2006-12-22 20:22:57 +01:00
|
|
|
};
|
|
|
|
|
2010-09-03 14:11:33 +02:00
|
|
|
buildNativeInputs = [perl];
|
2008-02-29 10:42:12 +01:00
|
|
|
buildInputs = [attr];
|
2006-12-22 20:22:57 +01:00
|
|
|
|
2008-02-29 10:42:12 +01:00
|
|
|
preBuild = ''
|
2008-03-26 10:37:09 +01:00
|
|
|
makeFlagsArray=(LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man PAM_CAP=no)
|
2008-02-29 10:42:12 +01:00
|
|
|
'';
|
2006-12-22 20:22:57 +01:00
|
|
|
}
|