76999cc40e
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases = true;}'’ work in Nixpkgs. Misc... - qtikz: use libsForQt5.callPackage This ensures we get the right poppler. - rewrites: docbook5_xsl -> docbook_xsl_ns docbook_xml_xslt -> docbook_xsl diffpdf: fixup
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, bison, flex, libsepol, libselinux, bzip2, audit
|
|
, enablePython ? true, swig ? null, python ? null
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libsemanage-${version}";
|
|
version = "2.7";
|
|
inherit (libsepol) se_release se_url;
|
|
|
|
src = fetchurl {
|
|
url = "${se_url}/${se_release}/libsemanage-${version}.tar.gz";
|
|
sha256 = "0xnlp1yg8b1aqc6kq3pss1i1nl06rfj4x4pyl5blasnf2ivlgs87";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex pkgconfig ];
|
|
buildInputs = [ libsepol libselinux bzip2 audit ]
|
|
++ optionals enablePython [ swig python ];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray+=("PREFIX=$out")
|
|
makeFlagsArray+=("DESTDIR=$out")
|
|
makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
|
|
makeFlagsArray+=("MAN5DIR=$out/share/man/man5")
|
|
makeFlagsArray+=("PYSITEDIR=$out/lib/${python.libPrefix}/site-packages")
|
|
'';
|
|
|
|
installTargets = [ "install" ] ++ optionals enablePython [ "install-pywrap" ];
|
|
|
|
meta = libsepol.meta // {
|
|
description = "Policy management tools for SELinux";
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
};
|
|
}
|