3
0
Fork 0
forked from mirrors/nixpkgs

nfstrace: fix build

https://hydra.nixos.org/build/109722476
This commit is contained in:
Maximilian Bosch 2020-01-06 17:59:51 +01:00
parent 76ebc0963d
commit 1bb691ff9f
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -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