trickle: fix build w/glibc-2.32
This commit is contained in:
parent
f5a2dd0811
commit
9ca70aba93
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue