mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
5227fb1dd5
Many non-conflict problems weren't (fully) resolved in this commit yet.
31 lines
702 B
Nix
31 lines
702 B
Nix
{ stdenv, fetchurl, attr, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libcap-${version}";
|
|
version = "2.24";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/libs/security/linux-privs/libcap2/${name}.tar.xz";
|
|
sha256 = "0rbc9qbqs5bp9am9s9g83wxj5k4ixps2agy9dxr1v1fwg27mdr6f";
|
|
};
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
propagatedBuildInputs = [ attr ];
|
|
|
|
preConfigure = "cd libcap";
|
|
|
|
makeFlags = "lib=lib prefix=$(out)";
|
|
|
|
postInstall = ''
|
|
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;
|
|
};
|
|
}
|