2012-07-19 14:25:56 +00:00
|
|
|
{ stdenv, fetchurl, attr, perl }:
|
2006-12-22 19:22:57 +00:00
|
|
|
|
2010-09-27 13:49:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcap-${version}";
|
2015-03-26 07:53:45 +00:00
|
|
|
version = "2.24";
|
2013-08-23 07:55:51 +00:00
|
|
|
|
2006-12-22 19:22:57 +00:00
|
|
|
src = fetchurl {
|
2015-03-26 07:53:45 +00:00
|
|
|
url = "mirror://kernel/linux/libs/security/linux-privs/libcap2/${name}.tar.xz";
|
|
|
|
sha256 = "0rbc9qbqs5bp9am9s9g83wxj5k4ixps2agy9dxr1v1fwg27mdr6f";
|
2006-12-22 19:22:57 +00:00
|
|
|
};
|
2013-08-23 07:55:51 +00:00
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2012-07-19 14:25:56 +00:00
|
|
|
propagatedBuildInputs = [ attr ];
|
2006-12-22 19:22:57 +00:00
|
|
|
|
2010-09-27 13:49:13 +00:00
|
|
|
preConfigure = "cd libcap";
|
|
|
|
|
|
|
|
makeFlags = "lib=lib prefix=$(out)";
|
|
|
|
|
2014-08-26 23:14:09 +00:00
|
|
|
postInstall = ''
|
2015-10-03 17:12:06 +00:00
|
|
|
rm "$out"/lib/*.a
|
2014-08-26 23:14:09 +00:00
|
|
|
mkdir -p "$dev/share/doc/${name}"
|
|
|
|
cp ../License "$dev/share/doc/${name}/License"
|
|
|
|
'';
|
2012-07-19 14:25:56 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library for working with POSIX capabilities";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2006-12-22 19:22:57 +00:00
|
|
|
}
|