parent
76ebc0963d
commit
1bb691ff9f
@ -18,13 +18,18 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace "-Wno-braced-scalar-init" ""
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ json_c libpcap ncurses ];
|
buildInputs = [ json_c libpcap ncurses ];
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
# To build with GCC 8+ it needs:
|
# To build with GCC 8+ it needs:
|
||||||
CXXFLAGS = "-Wno-class-memaccess -Wno-ignored-qualifiers";
|
CXXFLAGS = "-Wno-class-memaccess -Wno-ignored-qualifiers";
|
||||||
# CMake can't find json_c without:
|
# CMake can't find json_c without:
|
||||||
NIX_CFLAGS_COMPILE = "-I${json_c.dev}/include/json-c";
|
NIX_CFLAGS_COMPILE = [ "-I${json_c.dev}/include/json-c" "-Wno-error=address-of-packed-member" ];
|
||||||
|
|
||||||
doCheck = false; # requires network access
|
doCheck = false; # requires network access
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user