trickle: fix build w/glibc-2.32

This commit is contained in:
Maximilian Bosch 2020-08-11 22:33:36 +02:00
parent f5a2dd0811
commit 9ca70aba93
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libevent }:
{ stdenv, fetchurl, libevent, libtirpc }:
stdenv.mkDerivation rec {
name = "trickle-1.07";
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0s1qq3k5mpcs9i7ng0l9fvr1f75abpbzfi1jaf3zpzbs1dz50dlx";
};
buildInputs = [ libevent ];
buildInputs = [ libevent libtirpc ];
preConfigure = ''
sed -i 's|libevent.a|libevent.so|' configure
@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
sed -i '/#define in_addr_t/ s:^://:' config.h
'';
LDFLAGS = "-levent";
NIX_LDFLAGS = [ "-levent" "-ltirpc" ];
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
configureFlags = [ "--with-libevent" ];