git.iko.soy/typeable/nixpkgs
on master help sign in
libcap: 2.49 -> 2.63

https://sites.google.com/site/fullycapable/release-notes-for-libcap

commit0e3394758c5c12695e7be82aabb0ce907e4f0833 authorzowoq <59103226+zowoq@users.noreply.github.com> dateWed 16 Mar 2022, 17:47 (5 years ago) parentb6aa99a
1 file changed+6−5
pkgs/os-specific/linux/libcap/default.nix+6−5
pkgs/os-specific/linux/libcap/default.nix+6−5
@@ -1,4 +1,4 @@
1−{ stdenv, lib, buildPackages, fetchurl, attr, perl, runtimeShell
1+{ stdenv, lib, buildPackages, fetchurl, attr, runtimeShell
22, usePam ? !isStatic, pam ? null
33, isStatic ? stdenv.hostPlatform.isStatic
44}:
@@ -7,18 +7,17 @@ assert usePam -> pam != null;
77
88stdenv.mkDerivation rec {
99 pname = "libcap";
10− version = "2.49";
10+ version = "2.63";
1111
1212 src = fetchurl {
1313 url = "mirror://kernel/linux/libs/security/linux-privs/libcap2/${pname}-${version}.tar.xz";
14− sha256 = "sha256-6YvE2TZFCC7Hh3MLD9GnErOIgkZcUFd33hfDOIMe4YE=";
14+ sha256 = "sha256-DGN7j0T8fYYneH6c9X8VrAbB3cy1PkH+7FSWvjRm938=";
1515 };
1616
1717 outputs = [ "out" "dev" "lib" "man" "doc" ]
1818 ++ lib.optional usePam "pam";
1919
2020 depsBuildBuild = [ buildPackages.stdenv.cc ];
21− nativeBuildInputs = [ perl ];
2221
2322 buildInputs = lib.optional usePam pam;
2423
@@ -31,7 +30,9 @@ stdenv.mkDerivation rec {
3130 "CC:=$(CC)"
3231 ] ++ lib.optional isStatic "SHARED=no";
3332
34− prePatch = ''
33+ postPatch = ''
34+ patchShebangs ./progs/mkcapshdoc.sh
35+
3536 # use full path to bash
3637 substituteInPlace progs/capsh.c --replace "/bin/bash" "${runtimeShell}"
3738