3
0
Fork 0
forked from mirrors/nixpkgs

nfstrace: fix build w/glibc-2.32

This commit is contained in:
Maximilian Bosch 2020-08-12 10:59:19 +02:00
parent 9ca70aba93
commit 59637a4474
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -1,4 +1,4 @@
{ cmake, fetchFromGitHub, fetchpatch, json_c, libpcap, ncurses, stdenv }:
{ cmake, fetchFromGitHub, fetchpatch, json_c, libpcap, ncurses, stdenv, libtirpc }:
stdenv.mkDerivation rec {
pname = "nfstrace";
@ -23,13 +23,14 @@ stdenv.mkDerivation rec {
--replace "-Wno-braced-scalar-init" ""
'';
buildInputs = [ json_c libpcap ncurses ];
buildInputs = [ json_c libpcap ncurses libtirpc ];
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" "-Wno-error=address-of-packed-member" ];
NIX_CFLAGS_COMPILE = [ "-I${json_c.dev}/include/json-c" "-Wno-error=address-of-packed-member" "-I${libtirpc.dev}/include/tirpc" ];
NIX_LDFLAGS = [ "-ltirpc" ];
doCheck = false; # requires network access