From 548a22da048390aabfeda21c7c7d4915077821f5 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 23:59:27 +0100 Subject: [PATCH] nagiosPlugins.check_uptime: format with nixfmt-rfc-style --- .../nagios-plugins/check_uptime/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/monitoring/nagios-plugins/check_uptime/default.nix b/pkgs/servers/monitoring/nagios-plugins/check_uptime/default.nix index 2434599ac1f3..8b16f38ccdd5 100644 --- a/pkgs/servers/monitoring/nagios-plugins/check_uptime/default.nix +++ b/pkgs/servers/monitoring/nagios-plugins/check_uptime/default.nix @@ -1,13 +1,18 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook }: +{ + autoreconfHook, + fetchFromGitHub, + lib, + stdenv, +}: stdenv.mkDerivation { pname = "check_uptime"; version = "20161112"; src = fetchFromGitHub { - owner = "madrisan"; - repo = "nagios-plugins-uptime"; - rev = "51822dacd1d404b3eabf3b4984c64b2475ed6f3b"; + owner = "madrisan"; + repo = "nagios-plugins-uptime"; + rev = "51822dacd1d404b3eabf3b4984c64b2475ed6f3b"; sha256 = "18q9ibzqn97dsyr9xs3w9mqk80nmmfw3kcjidrdsj542amlsycyk"; }; @@ -17,10 +22,11 @@ stdenv.mkDerivation { postInstall = "ln -sr $out/libexec $out/bin"; - meta = with lib; { + meta = { description = "Uptime check plugin for Sensu/Nagios/others"; - homepage = "https://github.com/madrisan/nagios-plugins-uptime"; - license = licenses.gpl3; - maintainers = with maintainers; [ peterhoeg ]; + homepage = "https://github.com/madrisan/nagios-plugins-uptime"; + license = lib.licenses.gpl3; + mainProgram = "check_uptime"; + maintainers = with lib.maintainers; [ peterhoeg ]; }; }