Add trickle 1.07

This commit is contained in:
Rob Vermaas 2012-07-16 12:06:31 +02:00
parent 0b0babffc5
commit 09f6874aad
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, fetchurl, libevent }:
stdenv.mkDerivation rec {
name = "trickle-1.07";
src = fetchurl {
url = "http://monkey.org/~marius/trickle/${name}.tar.gz";
sha256 = "0s1qq3k5mpcs9i7ng0l9fvr1f75abpbzfi1jaf3zpzbs1dz50dlx";
};
buildInputs = [libevent];
preConfigure = ''
sed -i 's|libevent.a|libevent.so|' configure
'';
preBuild = ''
sed -i '/#define in_addr_t/ s:^://:' config.h
'';
LDFLAGS = "-levent";
configureFlags = "--with-libevent";
meta = {
description = "Trickle, a portable lightweight userspace bandwidth shaper.";
license = "BSD";
homepage = http://monkey.org/~marius/pages/?page=trickle;
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -1508,6 +1508,8 @@ let
torsocks = callPackage ../tools/security/tor/torsocks.nix { }; torsocks = callPackage ../tools/security/tor/torsocks.nix { };
trickle = callPackage ../tools/networking/trickle {};
ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { }; ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { };
ttf2pt1_cl_pdf = callPackage ../tools/misc/ttf2pt1 { }; ttf2pt1_cl_pdf = callPackage ../tools/misc/ttf2pt1 { };