libselinux: 2.3 -> 2.4
This commit is contained in:
parent
ffa1782688
commit
b18a354c88
@ -8,12 +8,12 @@ with stdenv.lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libselinux-${version}";
|
name = "libselinux-${version}";
|
||||||
version = "2.3";
|
version = "2.4";
|
||||||
inherit (libsepol) se_release se_url;
|
inherit (libsepol) se_release se_url;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${se_url}/${se_release}/libselinux-${version}.tar.gz";
|
url = "${se_url}/${se_release}/libselinux-${version}.tar.gz";
|
||||||
sha256 = "1ckpiv6m5c07rp5vawlhv02w5rq8kc0n95fh2ckq2jnqxi1hn7hb";
|
sha256 = "0yqg73ns97jwjh1iyv0jr5qxb8k5sqq5ywfkx11lzfn5yj8k0126";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig libsepol pcre ]
|
buildInputs = [ pkgconfig libsepol pcre ]
|
||||||
@ -23,16 +23,19 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
|
sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installFlags = [ "PREFIX=$(out)" "DESTDIR=$(out)" ];
|
NIX_CFLAGS_COMPILE = "-std=gnu89";
|
||||||
installTargets = [ "install" ] ++ optional enablePython "install-pywrap";
|
|
||||||
|
|
||||||
# TODO: Figure out why the build incorrectly links libselinux.so
|
preBuild = ''
|
||||||
postInstall = ''
|
# Build fails without this precreated
|
||||||
rm $out/lib/libselinux.so
|
mkdir -p $out/include
|
||||||
ln -s libselinux.so.1 $out/lib/libselinux.so
|
|
||||||
|
makeFlagsArray+=("PREFIX=$out")
|
||||||
|
makeFlagsArray+=("DESTDIR=$out")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
installTargets = [ "install" ] ++ optional enablePython "install-pywrap";
|
||||||
inherit (libsepol.meta) homepage platforms maintainers;
|
|
||||||
|
meta = libsepol.meta // {
|
||||||
|
description = "SELinux core library";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user