at 22.05-pre 31 lines 762 B view raw
1{lib, stdenv, fetchFromGitHub, libssh}: 2 3stdenv.mkDerivation rec { 4 pname = "sshping"; 5 version = "0.1.4"; 6 7 src = fetchFromGitHub { 8 owner = "spook"; 9 repo = "sshping"; 10 rev = "v${version}"; 11 sha256 = "0p1fvpgrsy44yvj44xp9k9nf6z1fh0sqcjvy75pcb9f5icgms815"; 12 }; 13 14 buildInputs = [ libssh ]; 15 16 buildPhase = '' 17 $CXX -Wall -I ext/ -o bin/sshping src/sshping.cxx -lssh 18 ''; 19 20 installPhase = '' 21 install -Dm755 bin/sshping $out/bin/sshping 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/spook/sshping"; 26 description = "Measure character-echo latency and bandwidth for an interactive ssh session"; 27 license = licenses.mit; 28 platforms = platforms.unix; 29 maintainers = with maintainers; [ jqueiroz ]; 30 }; 31}