mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
25de2c279b
libcap can be splitted for free (just cd subdir; make install). So I've decided not to raise up disscussions "should we build cap_pam.so?" etc. svn path=/nixpkgs/branches/stdenv-updates/; revision=23967
30 lines
632 B
Nix
30 lines
632 B
Nix
{stdenv, fetchurl, attr, perl}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libcap-${version}";
|
|
version = "2.19";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/${name}.tar.gz";
|
|
sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
|
|
};
|
|
|
|
buildNativeInputs = [perl];
|
|
propagatedBuildInputs = [attr];
|
|
|
|
preConfigure = "cd libcap";
|
|
|
|
makeFlags = "lib=lib prefix=$(out)";
|
|
|
|
passthru = {
|
|
postinst = n : ''
|
|
ensureDir $out/share/doc/${n}
|
|
cp ../License $out/share/doc/${n}/License
|
|
'';
|
|
};
|
|
|
|
postInstall = passthru.postinst name;
|
|
}
|