mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
29 lines
788 B
Nix
29 lines
788 B
Nix
{ lib, fetchFromGitHub, rustPlatform, makeWrapper, iperf3 }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "iperf3d";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wobcom";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-pMwGoBgFRVY+H51k+YCamzHgBoaJVwEVqY0CvMPvE0w=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/iperf3d --prefix PATH : ${iperf3}/bin
|
|
'';
|
|
|
|
cargoHash = "sha256-3mJBn70sSoDL9GNxgEZqA8S4GrY+DjnYY9Cc5Xe1GFQ=";
|
|
|
|
meta = with lib; {
|
|
description = "Iperf3 client and server wrapper for dynamic server ports";
|
|
mainProgram = "iperf3d";
|
|
homepage = "https://github.com/wobcom/iperf3d";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ netali ] ++ teams.wdz.members;
|
|
};
|
|
}
|