1 { lib, stdenv, fetchurl, libevent, libtirpc }:
3 stdenv.mkDerivation rec {
7 url = "https://monkey.org/~marius/trickle/${name}.tar.gz";
8 sha256 = "0s1qq3k5mpcs9i7ng0l9fvr1f75abpbzfi1jaf3zpzbs1dz50dlx";
11 buildInputs = [ libevent libtirpc ];
14 sed -i 's|libevent.a|libevent.so|' configure
18 sed -i '/#define in_addr_t/ s:^://:' config.h
21 NIX_LDFLAGS = [ "-levent" "-ltirpc" ];
22 NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
24 configureFlags = [ "--with-libevent" ];
26 hardeningDisable = [ "format" ];
29 description = "Lightweight userspace bandwidth shaper";
30 license = lib.licenses.bsd3;
31 homepage = "https://monkey.org/~marius/pages/?page=trickle";
32 platforms = lib.platforms.linux;