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
1 changed files with 4 additions and 3 deletions

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 { stdenv.mkDerivation rec {
pname = "nfstrace"; pname = "nfstrace";
@ -23,13 +23,14 @@ stdenv.mkDerivation rec {
--replace "-Wno-braced-scalar-init" "" --replace "-Wno-braced-scalar-init" ""
''; '';
buildInputs = [ json_c libpcap ncurses ]; buildInputs = [ json_c libpcap ncurses libtirpc ];
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" "-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 doCheck = false; # requires network access