audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / cn / cnping / package.nix
blob2fe587f6e5b1c1d24fa335ba1c1c3be55577b270
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   libglvnd,
6   xorg,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "cnping";
11   version = "1.0.0-unstable-2024-02-29";
13   src = fetchFromGitHub {
14     owner = "cntools";
15     repo = "cnping";
16     rev = "2498fa4df1b4eff0df1f75b5f393e620bafd6997";
17     hash = "sha256-MMPLp/3GNal0AKkUgd850JrVjRO5rPHvbnOl1uogPCQ=";
18     fetchSubmodules = true;
19   };
21   buildInputs = [
22     libglvnd
23     xorg.libXinerama
24     xorg.libXext
25     xorg.libX11
26   ];
28   # The "linuxinstall" target won't work for us:
29   # it tries to setcap and copy to a FHS directory
30   installPhase = ''
31     mkdir -p $out/{bin,share/man/man1}
32     cp cnping $out/bin/cnping
33     cp cnping.1 $out/share/man/man1/cnping.1
34   '';
36   meta = with lib; {
37     description = "Minimal Graphical IPV4 Ping Tool";
38     homepage = "https://github.com/cntools/cnping";
39     license = with licenses; [
40       mit
41       bsd3
42     ]; # dual licensed, MIT-x11 & BSD-3-Clause
43     maintainers = [ ];
44     platforms = platforms.linux;
45     mainProgram = "cnping";
46   };