1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bison, flex
2, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
3
4stdenv.mkDerivation rec {
5 name = "setools-2015-02-12";
6
7 src = fetchFromGitHub {
8 owner = "TresysTechnology";
9 repo = "setools3";
10 rev = "f1e5b208d507171968ca4d2eeefd7980f1004a3c";
11 sha256 = "02gzy2kpszhr13f0d9qfiwh2hj4201g2x366j53v5n5qz481aykd";
12 };
13
14 configureFlags = [
15 "--disable-gui"
16 "--with-sepol-devel=${libsepol}"
17 "--with-selinux-devel=${libselinux}"
18 "--with-tcl=${tcl}/lib"
19 ];
20
21 NIX_CFLAGS_COMPILE = "-fstack-protector-all";
22 NIX_LDFLAGS = "-L${libsepol}/lib -L${libselinux}/lib";
23
24 nativeBuildInputs = [ autoreconfHook pkgconfig python swig2 bison flex ];
25 buildInputs = [ tcl libxml2 sqlite bzip2 ];
26
27 meta = {
28 description = "SELinux Tools";
29 homepage = "http://oss.tresys.com/projects/setools/";
30 license = stdenv.lib.licenses.gpl2;
31 platforms = stdenv.lib.platforms.linux;
32 };
33}