2012-07-16 12:06:31 +02:00
|
|
|
{ stdenv, fetchurl, libevent }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trickle-1.07";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://monkey.org/~marius/trickle/${name}.tar.gz";
|
|
|
|
sha256 = "0s1qq3k5mpcs9i7ng0l9fvr1f75abpbzfi1jaf3zpzbs1dz50dlx";
|
|
|
|
};
|
|
|
|
|
2016-02-21 10:44:40 +01:00
|
|
|
buildInputs = [ libevent ];
|
2012-07-16 12:06:31 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's|libevent.a|libevent.so|' configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -i '/#define in_addr_t/ s:^://:' config.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
LDFLAGS = "-levent";
|
|
|
|
|
|
|
|
configureFlags = "--with-libevent";
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-21 10:44:40 +01:00
|
|
|
|
2012-07-16 12:06:31 +02:00
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Lightweight userspace bandwidth shaper";
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://monkey.org/~marius/pages/?page=trickle;
|
2012-07-16 12:06:31 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|