git.iko.soy/typeable/nixpkgs
on master help sign in
libsemanage: 2.4 -> 2.7
commit232c39e7abdb86c3533c258dc0bcacd380c34369 authorxeji <xeji@cat3.de> dateWed 14 Mar 2018, 13:43 (9 years ago) parentea7507b
1 file changed+15−13
pkgs/os-specific/linux/libsemanage/default.nix+15−13
pkgs/os-specific/linux/libsemanage/default.nix+15−13
@@ -1,31 +1,33 @@
1−{ stdenv, fetchurl, bison, flex, libsepol, libselinux, ustr, bzip2, libaudit }:
1+{ stdenv, fetchurl, pkgconfig, bison, flex, libsepol, libselinux, bzip2, libaudit
2+, enablePython ? true, swig ? null, python ? null
3+}:
4+
5+with stdenv.lib;
26
37stdenv.mkDerivation rec {
48 name = "libsemanage-${version}";
5− version = "2.4";
9+ version = "2.7";
610 inherit (libsepol) se_release se_url;
711
812 src = fetchurl {
913 url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz";
10− sha256 = "1134ka4mi4387ac5yv68bpp2y7ln5xxhwp07xhqnay0nxzjaqk0s";
14+ sha256 = "0xnlp1yg8b1aqc6kq3pss1i1nl06rfj4x4pyl5blasnf2ivlgs87";
1115 };
1216
13− nativeBuildInputs = [ bison flex ];
14− buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
15−
16− NIX_CFLAGS_COMPILE = [
17− "-fstack-protector-all"
18− "-std=gnu89"
19− # these were added to fix build with gcc7. review on update
20− "-Wno-error=format-truncation"
21− "-Wno-error=implicit-fallthrough"
22− ];
17+ nativeBuildInputs = [ bison flex pkgconfig ];
18+ buildInputs = [ libsepol libselinux bzip2 libaudit ]
19+ ++ optionals enablePython [ swig python ];
2320
2421 preBuild = ''
2522 makeFlagsArray+=("PREFIX=$out")
2623 makeFlagsArray+=("DESTDIR=$out")
24+ makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
25+ makeFlagsArray+=("MAN5DIR=$out/share/man/man5")
26+ makeFlagsArray+=("PYSITEDIR=$out/lib/python2.7/site-packages")
2727 '';
2828
29+ installTargets = [ "install" ] ++ optionals enablePython [ "install-pywrap" ];
30+
2931 meta = libsepol.meta // {
3032 description = "Policy management tools for SELinux";
3133 license = stdenv.lib.licenses.lgpl21;