pingtcp: init at 0.0.3
This commit is contained in:
parent
f93e14fa76
commit
517d8c8846
33
pkgs/tools/networking/pingtcp/default.nix
Normal file
33
pkgs/tools/networking/pingtcp/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv, fetchgit, cmake }:
|
||||
|
||||
let version = "0.0.3"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "pingtcp-${version}";
|
||||
|
||||
# This project uses git submodules, which fetchFromGitHub doesn't support:
|
||||
src = fetchgit {
|
||||
sha256 = "0an4dbwcp2qv1n068q0s34lz88vl1z2rqfh3j9apbq7bislsrwdd";
|
||||
rev = "refs/tags/v${version}";
|
||||
url = "https://github.com/LanetNetwork/pingtcp.git";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace {.,pfcquirks}/CMakeLists.txt \
|
||||
--replace "-march=native" ""
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit version;
|
||||
description = "Measure TCP handshake time";
|
||||
homepage = https://github.com/LanetNetwork/pingtcp;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
}
|
@ -2746,6 +2746,8 @@ let
|
||||
libcap = if stdenv.isDarwin then null else libcap;
|
||||
};
|
||||
|
||||
pingtcp = callPackage ../tools/networking/pingtcp { };
|
||||
|
||||
pius = callPackage ../tools/security/pius { };
|
||||
|
||||
pk2cmd = callPackage ../tools/misc/pk2cmd { };
|
||||
|
Loading…
Reference in New Issue
Block a user