depot/pkgs/servers/monitoring/nagios-plugins/check_uptime/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

34 lines
771 B
Nix

{
autoreconfHook,
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation {
pname = "check-uptime";
version = "0-unstable-2016-11-12";
src = fetchFromGitHub {
owner = "madrisan";
repo = "nagios-plugins-uptime";
rev = "51822dacd1d404b3eabf3b4984c64b2475ed6f3b";
hash = "sha256-0zOvaVWCFKlbblGyObir1QI0cU186J6y1+0ki/+KCaM=";
};
nativeBuildInputs = [ autoreconfHook ];
enableParallelBuilding = true;
postInstall = ''
ln -sr $out/libexec $out/bin
'';
meta = {
description = "Uptime check plugin for Sensu/Nagios/others";
homepage = "https://github.com/madrisan/nagios-plugins-uptime";
license = lib.licenses.gpl3Plus;
mainProgram = "check_uptime";
maintainers = with lib.maintainers; [ peterhoeg ];
};
}