2012-07-19 16:25:56 +02:00
|
|
|
{ stdenv, fetchurl, attr, perl }:
|
2006-12-22 20:22:57 +01:00
|
|
|
|
2010-09-27 15:49:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcap-${version}";
|
2015-03-26 08:53:45 +01:00
|
|
|
version = "2.24";
|
2008-02-29 10:42:12 +01:00
|
|
|
|
2006-12-22 20:22:57 +01:00
|
|
|
src = fetchurl {
|
2015-03-26 08:53:45 +01:00
|
|
|
url = "mirror://kernel/linux/libs/security/linux-privs/libcap2/${name}.tar.xz";
|
|
|
|
sha256 = "0rbc9qbqs5bp9am9s9g83wxj5k4ixps2agy9dxr1v1fwg27mdr6f";
|
2006-12-22 20:22:57 +01:00
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ perl ];
|
2012-07-19 16:25:56 +02:00
|
|
|
propagatedBuildInputs = [ attr ];
|
2006-12-22 20:22:57 +01:00
|
|
|
|
2010-09-27 15:49:13 +02:00
|
|
|
preConfigure = "cd libcap";
|
|
|
|
|
|
|
|
makeFlags = "lib=lib prefix=$(out)";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
postinst = n : ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/doc/${n}
|
2010-09-27 15:49:13 +02:00
|
|
|
cp ../License $out/share/doc/${n}/License
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = passthru.postinst name;
|
2012-07-19 16:25:56 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library for working with POSIX capabilities";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2006-12-22 20:22:57 +01:00
|
|
|
}
|