uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/tools/networking/trickle/default.nix
Normal file
35
pkgs/tools/networking/trickle/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchurl, libevent, libtirpc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "trickle";
|
||||
version = "1.07";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://monkey.org/~marius/trickle/trickle-${version}.tar.gz";
|
||||
sha256 = "0s1qq3k5mpcs9i7ng0l9fvr1f75abpbzfi1jaf3zpzbs1dz50dlx";
|
||||
};
|
||||
|
||||
buildInputs = [ libevent libtirpc ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's|libevent.a|libevent.so|' configure
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
sed -i '/#define in_addr_t/ s:^://:' config.h
|
||||
'';
|
||||
|
||||
NIX_LDFLAGS = [ "-levent" "-ltirpc" ];
|
||||
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
|
||||
|
||||
configureFlags = [ "--with-libevent" ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
meta = {
|
||||
description = "Lightweight userspace bandwidth shaper";
|
||||
license = lib.licenses.bsd3;
|
||||
homepage = "https://monkey.org/~marius/pages/?page=trickle";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue