nixpkgs/pkgs/os-specific/linux/libcap/default.nix

32 lines
724 B
Nix
Raw Normal View History

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