depot/third_party/nixpkgs/pkgs/tools/networking/pingtcp/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

30 lines
687 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "pingtcp";
version = "0.0.3";
src = fetchFromGitHub {
owner = "LanetNetwork";
repo = "pingtcp";
sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
rev = "refs/tags/v${version}";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
doCheck = false;
postInstall = ''
install -Dm644 {..,$out/share/doc/pingtcp}/README.md
'';
meta = with lib; {
description = "Measure TCP handshake time";
homepage = "https://github.com/LanetNetwork/pingtcp";
license = licenses.gpl3;
platforms = platforms.linux;
mainProgram = "pingtcp";
};
}