From 34d91e675bfac9cfed653b88ae3093357bd6d59f Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 13 Sep 2021 13:56:04 +0200 Subject: [PATCH] ntttcp: init at 1.4.0 --- pkgs/tools/networking/ntttcp/default.nix | 30 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/networking/ntttcp/default.nix diff --git a/pkgs/tools/networking/ntttcp/default.nix b/pkgs/tools/networking/ntttcp/default.nix new file mode 100644 index 000000000000..662e4d32fb72 --- /dev/null +++ b/pkgs/tools/networking/ntttcp/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "ntttcp"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "microsoft"; + repo = "ntttcp-for-linux"; + rev = version; + sha256 = "sha256-6O7qSrR6EFr7k9lHQHGs/scZxJJ5DBNDxlSL5hzlRf4="; + }; + + preBuild = "cd src"; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin + cp ntttcp $out/bin + runHook postInstall + ''; + + meta = with lib; { + description = "A Linux network throughput multiple-thread benchmark tool"; + homepage = "https://github.com/microsoft/ntttcp-for-linux"; + license = licenses.mit; + maintainers = with maintainers; [ delroth ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ada782c58b3d..fb96956c83a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7683,6 +7683,8 @@ with pkgs; nttcp = callPackage ../tools/networking/nttcp { }; + ntttcp = callPackage ../tools/networking/ntttcp { }; + nuttcp = callPackage ../tools/networking/nuttcp { }; nssmdns = callPackage ../tools/networking/nss-mdns { };