nixpkgs/pkgs/tools/networking/ntttcp/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
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/'
2024-06-09 23:07:45 +02:00

32 lines
720 B
Nix

{ 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 = "Linux network throughput multiple-thread benchmark tool";
homepage = "https://github.com/microsoft/ntttcp-for-linux";
license = licenses.mit;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
mainProgram = "ntttcp";
};
}