Files
nixpkgs/pkgs/by-name/cn/cnping/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1019 B
Nix

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