evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / nt / ntttcp / package.nix
blobabf0acf8a8938d8422ae1ee5108b09e96c6b105f
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "ntttcp";
5   version = "1.4.0";
7   src = fetchFromGitHub {
8     owner = "microsoft";
9     repo = "ntttcp-for-linux";
10     rev = version;
11     sha256 = "sha256-6O7qSrR6EFr7k9lHQHGs/scZxJJ5DBNDxlSL5hzlRf4=";
12   };
14   preBuild = "cd src";
16   installPhase = ''
17     runHook preInstall
18     mkdir -p $out/bin
19     cp ntttcp $out/bin
20     runHook postInstall
21   '';
23   meta = with lib; {
24     description = "Linux network throughput multiple-thread benchmark tool";
25     homepage = "https://github.com/microsoft/ntttcp-for-linux";
26     license = licenses.mit;
27     maintainers = [ ];
28     platforms = platforms.linux;
29     mainProgram = "ntttcp";
30   };