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/tcpreplay/default.nix
Normal file
35
pkgs/tools/networking/tcpreplay/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tcpreplay";
|
||||
version = "4.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
|
||||
sha256 = "sha256-y2e2SRphiGf8T5hI9YYBnxuy69FJ85OvrFVE7lXkVE8=";
|
||||
};
|
||||
|
||||
buildInputs = [ libpcap ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
Carbon CoreServices
|
||||
];
|
||||
|
||||
|
||||
configureFlags = [
|
||||
"--disable-local-libopts"
|
||||
"--disable-libopts-install"
|
||||
"--enable-dynamic-link"
|
||||
"--enable-shared"
|
||||
"--enable-tcpreplay-edit"
|
||||
"--with-libpcap=${libpcap}"
|
||||
"--with-tcpdump=${tcpdump}/bin/tcpdump"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A suite of utilities for editing and replaying network traffic";
|
||||
homepage = "https://tcpreplay.appneta.com/";
|
||||
license = with licenses; [ bsdOriginalUC gpl3Only ];
|
||||
maintainers = with maintainers; [ eleanor ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue