mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
32 lines
790 B
Nix
32 lines
790 B
Nix
{ stdenv, fetchgit, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pingtcp-${version}";
|
|
version = "0.0.3";
|
|
|
|
# This project uses git submodules, which fetchFromGitHub doesn't support:
|
|
src = fetchgit {
|
|
sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
|
|
rev = "refs/tags/v${version}";
|
|
url = "https://github.com/LanetNetwork/pingtcp.git";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
install -Dm644 {..,$out/share/doc/pingtcp}/README.md
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Measure TCP handshake time";
|
|
homepage = https://github.com/LanetNetwork/pingtcp;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ nckx ];
|
|
};
|
|
}
|