mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Add trickle 1.07
This commit is contained in:
parent
0b0babffc5
commit
09f6874aad
31
pkgs/tools/networking/trickle/default.nix
Normal file
31
pkgs/tools/networking/trickle/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -1508,6 +1508,8 @@ let
|
||||
|
||||
torsocks = callPackage ../tools/security/tor/torsocks.nix { };
|
||||
|
||||
trickle = callPackage ../tools/networking/trickle {};
|
||||
|
||||
ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { };
|
||||
ttf2pt1_cl_pdf = callPackage ../tools/misc/ttf2pt1 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user