2012-07-19 16:25:56 +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;
|
|
|
|
|
2010-09-27 15:49:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcap-${version}";
|
2012-07-19 16:25:56 +02:00
|
|
|
version = "2.22";
|
2008-02-29 10:42:12 +01:00
|
|
|
|
2006-12-22 20:22:57 +01:00
|
|
|
src = fetchurl {
|
2012-07-19 16:25:56 +02:00
|
|
|
url = "mirror://gentoo/distfiles/${name}.tar.bz2";
|
|
|
|
sha256 = "03q50j6bg65cc501q87qh328ncav1i8qw2bjig99vxmmfx4bvsvk";
|
2006-12-22 20:22:57 +01:00
|
|
|
};
|
|
|
|
|
2012-07-19 16:25:56 +02:00
|
|
|
buildNativeInputs = [ perl ];
|
|
|
|
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
|
|
|
}
|