mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
31 lines
702 B
Nix
31 lines
702 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 = "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;
|
|
};
|
|
}
|