nixpkgs/pkgs/tools/networking/trickle/default.nix
Bjørn Forsman 083d0890f5 More description fixes
* Remove package name
* Start with upper case letter
* Remove trailing period

Also reword some descriptions and move some long descriptions to
longDescription.

I'm not touching generated packages.
2013-10-06 12:01:38 +02:00

32 lines
687 B
Nix

{ 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 = "Lightweight userspace bandwidth shaper";
license = "BSD";
homepage = http://monkey.org/~marius/pages/?page=trickle;
platforms = stdenv.lib.platforms.linux;
};
}