2012-07-19 14:25:56 +00:00
|
|
|
{ stdenv, fetchurl, attr, perl }:
|
2006-12-22 19:22:57 +00:00
|
|
|
|
2007-05-16 14:54:28 +00:00
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2010-09-27 13:49:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcap-${version}";
|
2012-07-19 14:25:56 +00:00
|
|
|
version = "2.22";
|
2013-08-23 07:55:51 +00:00
|
|
|
|
2006-12-22 19:22:57 +00:00
|
|
|
src = fetchurl {
|
2012-07-19 14:25:56 +00:00
|
|
|
url = "mirror://gentoo/distfiles/${name}.tar.bz2";
|
|
|
|
sha256 = "03q50j6bg65cc501q87qh328ncav1i8qw2bjig99vxmmfx4bvsvk";
|
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)";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
postinst = n : ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/doc/${n}
|
2010-09-27 13:49:13 +00:00
|
|
|
cp ../License $out/share/doc/${n}/License
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = passthru.postinst name;
|
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
|
|
|
}
|