setools: 2015-02-12 -> 2017-11-10
This commit is contained in:
parent
ac90dffdc7
commit
07fe29741b
@ -1,35 +1,42 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bison, flex
|
{ stdenv, fetchFromGitHub, bison, flex, python3 , swig
|
||||||
, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
|
, libsepol, libselinux, checkpolicy
|
||||||
|
, withGraphics ? false
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
with stdenv.lib;
|
||||||
name = "setools-2015-02-12";
|
with python3.pkgs;
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
pname = "setools";
|
||||||
|
version = "2017-11-10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "TresysTechnology";
|
owner = "TresysTechnology";
|
||||||
repo = "setools3";
|
repo = pname;
|
||||||
rev = "f1e5b208d507171968ca4d2eeefd7980f1004a3c";
|
rev = "a1aa0f33f5c428d3f9fe82960ed5de36f38047f7";
|
||||||
sha256 = "02gzy2kpszhr13f0d9qfiwh2hj4201g2x366j53v5n5qz481aykd";
|
sha256 = "0iyj35fff93cprjkzbkg9dn5xz8dg5h2kjx3476fl625nxxskndn";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
nativeBuildInputs = [ bison flex ];
|
||||||
"--disable-gui"
|
buildInputs = [ libsepol swig ];
|
||||||
"--with-sepol-devel=${libsepol}"
|
propagatedBuildInputs = [ enum34 libselinux networkx ]
|
||||||
"--with-selinux-devel=${libselinux}"
|
++ optionals withGraphics [ pyqt5 ];
|
||||||
"--with-tcl=${tcl}/lib"
|
|
||||||
];
|
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
checkInputs = [ tox checkpolicy ];
|
||||||
|
preCheck = ''
|
||||||
|
export CHECKPOLICY=${checkpolicy}/bin/checkpolicy
|
||||||
|
'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
setupPyBuildFlags = [ "-i" ];
|
||||||
NIX_LDFLAGS = "-L${libsepol}/lib -L${libselinux}/lib";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig python swig2 bison flex ];
|
preBuild = ''
|
||||||
buildInputs = [ tcl libxml2 sqlite bzip2 ];
|
export SEPOL="${libsepol}/lib/libsepol.a"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "SELinux Tools";
|
description = "SELinux Tools";
|
||||||
homepage = http://oss.tresys.com/projects/setools/;
|
homepage = https://github.com/TresysTechnology/setools/wiki;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user