2014-08-14 16:55:12 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, bison, flex
|
2013-11-28 08:58:06 +00:00
|
|
|
, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "setools-3.3.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://oss.tresys.com/projects/setools/chrome/site/dists/${name}/${name}.tar.bz2";
|
|
|
|
sha256 = "16g987ijaxabc30zyjzia4nafq49rm038y1pm4vca7i3kb67wf24";
|
|
|
|
};
|
|
|
|
|
2014-08-14 16:55:12 +01:00
|
|
|
patches = [ ./ftbfs-invalid-operands-of-types.patch ];
|
|
|
|
|
2013-11-28 08:58:06 +00:00
|
|
|
# SWIG-TCL is broken in 3.3.8
|
|
|
|
configureFlags = ''
|
|
|
|
--with-tcl=${tcl}/lib
|
|
|
|
--with-sepol-devel=${libsepol}
|
|
|
|
--with-selinux-devel=${libselinux}
|
|
|
|
--disable-gui
|
|
|
|
--disable-swig-tcl
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ autoreconfHook pkgconfig bison flex python swig2 ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ tcl libsepol libselinux libxml2 sqlite bzip2 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SELinux Tools";
|
|
|
|
homepage = "http://oss.tresys.com/projects/setools/";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-11-28 08:58:06 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|