@@ -13,7 +13,13 @@ stdenv.mkDerivation rec {
1313 nativeBuildInputs = [ bison flex ];
1414 buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
1515
16− NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
16+ NIX_CFLAGS_COMPILE = [
17+ "-fstack-protector-all"
18+ "-std=gnu89"
19+ # these were added to fix build with gcc7. review on update
20+ "-Wno-error=format-truncation"
21+ "-Wno-error=implicit-fallthrough"
22+ ];
1723
1824 preBuild = ''
1925 makeFlagsArray+=("PREFIX=$out")