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