forked from mirrors/nixpkgs
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 ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
# To build with GCC 8+ it needs:
|
||||
CXXFLAGS = "-Wno-class-memaccess -Wno-ignored-qualifiers";
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue