1 { lib, stdenv, fetchFromGitHub, libglvnd, xorg }:
3 stdenv.mkDerivation rec {
5 version = "1.0.0-unstable-2024-02-29";
7 src = fetchFromGitHub {
10 rev = "2498fa4df1b4eff0df1f75b5f393e620bafd6997";
11 hash = "sha256-MMPLp/3GNal0AKkUgd850JrVjRO5rPHvbnOl1uogPCQ=";
12 fetchSubmodules = true;
15 buildInputs = [ libglvnd xorg.libXinerama xorg.libXext xorg.libX11 ];
17 # The "linuxinstall" target won't work for us:
18 # it tries to setcap and copy to a FHS directory
20 mkdir -p $out/{bin,share/man/man1}
21 cp cnping $out/bin/cnping
22 cp cnping.1 $out/share/man/man1/cnping.1
26 description = "Minimal Graphical IPV4 Ping Tool";
27 homepage = "https://github.com/cntools/cnping";
28 license = with licenses; [ mit bsd3 ]; # dual licensed, MIT-x11 & BSD-3-Clause
30 platforms = platforms.linux;
31 mainProgram = "cnping";