nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libglvnd, 6 libxinerama, 7 libxext, 8 libx11, 9}: 10 11stdenv.mkDerivation { 12 pname = "cnping"; 13 version = "1.0.0-unstable-2024-02-29"; 14 15 src = fetchFromGitHub { 16 owner = "cntools"; 17 repo = "cnping"; 18 rev = "2498fa4df1b4eff0df1f75b5f393e620bafd6997"; 19 hash = "sha256-MMPLp/3GNal0AKkUgd850JrVjRO5rPHvbnOl1uogPCQ="; 20 fetchSubmodules = true; 21 }; 22 23 buildInputs = [ 24 libglvnd 25 libxinerama 26 libxext 27 libx11 28 ]; 29 30 # The "linuxinstall" target won't work for us: 31 # it tries to setcap and copy to a FHS directory 32 installPhase = '' 33 mkdir -p $out/{bin,share/man/man1} 34 cp cnping $out/bin/cnping 35 cp cnping.1 $out/share/man/man1/cnping.1 36 ''; 37 38 meta = { 39 description = "Minimal Graphical IPV4 Ping Tool"; 40 homepage = "https://github.com/cntools/cnping"; 41 license = with lib.licenses; [ 42 mit 43 bsd3 44 ]; # dual licensed, MIT-x11 & BSD-3-Clause 45 maintainers = [ ]; 46 platforms = lib.platforms.linux; 47 mainProgram = "cnping"; 48 }; 49}