2015-08-01 00:14:58 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bison, flex
|
2013-11-28 09:58:06 +01:00
|
|
|
, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-01 00:14:58 +02:00
|
|
|
name = "setools-2015-02-12";
|
2013-11-28 09:58:06 +01:00
|
|
|
|
2015-08-01 00:14:58 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TresysTechnology";
|
|
|
|
repo = "setools3";
|
|
|
|
rev = "f1e5b208d507171968ca4d2eeefd7980f1004a3c";
|
|
|
|
sha256 = "02gzy2kpszhr13f0d9qfiwh2hj4201g2x366j53v5n5qz481aykd";
|
2013-11-28 09:58:06 +01:00
|
|
|
};
|
|
|
|
|
2015-08-01 00:14:58 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-gui"
|
|
|
|
"--with-sepol-devel=${libsepol}"
|
|
|
|
"--with-selinux-devel=${libselinux}"
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
];
|
2014-08-14 17:55:12 +02:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 19:02:25 +01:00
|
|
|
|
2015-08-01 00:14:58 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
|
|
|
NIX_LDFLAGS = "-L${libsepol}/lib -L${libselinux}/lib";
|
2013-11-28 09:58:06 +01:00
|
|
|
|
2015-08-01 00:14:58 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig python swig2 bison flex ];
|
|
|
|
buildInputs = [ tcl libxml2 sqlite bzip2 ];
|
2013-11-28 09:58:06 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SELinux Tools";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://oss.tresys.com/projects/setools/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-11-28 09:58:06 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|