mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
aff1f4ab94
The following parameters are now available: * hardeningDisable To disable specific hardening flags * hardeningEnable To enable specific hardening flags Only the cc-wrapper supports this right now, but these may be reused by other wrappers, builders or setup hooks. cc-wrapper supports the following flags: * fortify * stackprotector * pie (disabled by default) * pic * strictoverflow * format * relro * bindnow
35 lines
1,018 B
Nix
35 lines
1,018 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bison, flex
|
|
, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "setools-2015-02-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TresysTechnology";
|
|
repo = "setools3";
|
|
rev = "f1e5b208d507171968ca4d2eeefd7980f1004a3c";
|
|
sha256 = "02gzy2kpszhr13f0d9qfiwh2hj4201g2x366j53v5n5qz481aykd";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--disable-gui"
|
|
"--with-sepol-devel=${libsepol}"
|
|
"--with-selinux-devel=${libselinux}"
|
|
"--with-tcl=${tcl}/lib"
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
|
NIX_LDFLAGS = "-L${libsepol}/lib -L${libselinux}/lib";
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig python swig2 bison flex ];
|
|
buildInputs = [ tcl libxml2 sqlite bzip2 ];
|
|
|
|
meta = {
|
|
description = "SELinux Tools";
|
|
homepage = "http://oss.tresys.com/projects/setools/";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|