libselinux: 2.7 -> 2.8

This commit is contained in:
Franz Pletz 2019-01-11 04:35:40 +01:00
parent 22a8f081ae
commit 8cfc850510
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
1 changed files with 6 additions and 3 deletions

View File

@ -9,14 +9,14 @@ with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libselinux-${version}"; name = "libselinux-${version}";
version = "2.7"; version = "2.8";
inherit (libsepol) se_release se_url; inherit (libsepol) se_release se_url;
outputs = [ "bin" "out" "dev" "man" "py" ]; outputs = [ "bin" "out" "dev" "man" "py" ];
src = fetchurl { src = fetchurl {
url = "${se_url}/${se_release}/libselinux-${version}.tar.gz"; url = "${se_url}/${se_release}/libselinux-${version}.tar.gz";
sha256 = "0mwcq78v6ngbq06xmb9dvilpg0jnl2vs9fgrpakhmmiskdvc1znh"; sha256 = "1qc7c6lzvhs9sdgqalg1rxni3a88d989hgrw5f8i1kj3fvn9dnri";
}; };
nativeBuildInputs = [ pkgconfig ] ++ optionals enablePython [ swig python ]; nativeBuildInputs = [ pkgconfig ] ++ optionals enablePython [ swig python ];
@ -35,7 +35,6 @@ stdenv.mkDerivation rec {
"MAN3DIR=$(man)/share/man/man3" "MAN3DIR=$(man)/share/man/man3"
"MAN5DIR=$(man)/share/man/man5" "MAN5DIR=$(man)/share/man/man5"
"MAN8DIR=$(man)/share/man/man8" "MAN8DIR=$(man)/share/man/man8"
"PYSITEDIR=$(py)/${python.sitePackages}"
"SBINDIR=$(bin)/sbin" "SBINDIR=$(bin)/sbin"
"SHLIBDIR=$(out)/lib" "SHLIBDIR=$(out)/lib"
@ -44,6 +43,10 @@ stdenv.mkDerivation rec {
installTargets = [ "install" ] ++ optional enablePython "install-pywrap"; installTargets = [ "install" ] ++ optional enablePython "install-pywrap";
postInstall = ''
moveToOutput "${python.sitePackages}" "$py"
'';
meta = removeAttrs libsepol.meta ["outputsToInstall"] // { meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
description = "SELinux core library"; description = "SELinux core library";
}; };