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
29
pkgs/tools/networking/iperf/2.nix
Normal file
29
pkgs/tools/networking/iperf/2.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iperf";
|
||||
version = "2.1.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/iperf2/files/${pname}-${version}.tar.gz";
|
||||
sha256 = "1yflnj2ni988nm0p158q8lnkiq2gn2chmvsglyn2gqmqhwp3jaq6";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
configureFlags = [ "--enable-fastsampling" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/iperf $out/bin/iperf2
|
||||
ln -s $out/bin/iperf2 $out/bin/iperf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://sourceforge.net/projects/iperf/";
|
||||
description = "Tool to measure IP bandwidth using UDP or TCP";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.mit;
|
||||
|
||||
# prioritize iperf3
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
39
pkgs/tools/networking/iperf/3.nix
Normal file
39
pkgs/tools/networking/iperf/3.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, openssl, fetchpatch, lksctp-tools }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iperf";
|
||||
version = "3.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.es.net/pub/iperf/iperf-${version}.tar.gz";
|
||||
sha256 = "0pvy1cj92phpbldw0bdc0ds70n8irqcyn1ybyis0a6nnz84v936y";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isLinux [ lksctp-tools ];
|
||||
configureFlags = [
|
||||
"--with-openssl=${openssl.dev}"
|
||||
];
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
patches = lib.optionals stdenv.hostPlatform.isMusl [
|
||||
(fetchpatch {
|
||||
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=7f979fc51ae31d5c695d8481ba84a4afc5080efb";
|
||||
name = "remove-pg-flags.patch";
|
||||
sha256 = "0z3zsmf7ln08rg1mmzl8s8jm5gp8x62f5cxiqcmi8dcs2nsxwgbi";
|
||||
})
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/iperf3 $out/bin/iperf
|
||||
ln -s $man/share/man/man1/iperf3.1 $man/share/man/man1/iperf.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://software.es.net/iperf/";
|
||||
description = "Tool to measure IP bandwidth using UDP or TCP";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue