mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
aff1f4ab94
The following parameters are now available: * hardeningDisable To disable specific hardening flags * hardeningEnable To enable specific hardening flags Only the cc-wrapper supports this right now, but these may be reused by other wrappers, builders or setup hooks. cc-wrapper supports the following flags: * fortify * stackprotector * pie (disabled by default) * pic * strictoverflow * format * relro * bindnow
34 lines
744 B
Nix
34 lines
744 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";
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = {
|
|
description = "Lightweight userspace bandwidth shaper";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
homepage = http://monkey.org/~marius/pages/?page=trickle;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|