Loading pkgs/servers/monitoring/nagios-plugins/labs_consol_de/default.nix +69 −46 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, fetchurl, autoreconfHook, makeWrapper , perlPackages, coreutils, gnused, gnugrep }: { autoreconfHook, coreutils, fetchFromGitHub, fetchurl, gnugrep, gnused, lib, makeWrapper, perlPackages, stdenv, }: let glplugin = fetchFromGitHub { Loading @@ -9,7 +19,14 @@ let sha256 = "047fwrycsl2vmpi4wl46fs6f8y191d6qc9ms5rvmrj1dm2r828ws"; }; generic = { pname, version, sha256, description, buildInputs, ... }: generic = { pname, version, sha256, description, buildInputs, }: stdenv.mkDerivation { inherit pname version; Loading @@ -20,20 +37,25 @@ let buildInputs = [ perlPackages.perl ] ++ buildInputs; nativeBuildInputs = [ autoreconfHook makeWrapper ]; nativeBuildInputs = [ autoreconfHook makeWrapper ]; prePatch = '' rm -rf GLPlugin ln -s ${glplugin} GLPlugin substituteInPlace plugins-scripts/Makefile.am \ --replace /bin/cat ${lib.getBin coreutils}/bin/cat \ --replace /bin/echo ${lib.getBin coreutils}/bin/echo \ --replace /bin/grep ${lib.getBin gnugrep}/bin/grep \ --replace /bin/sed ${lib.getBin gnused}/bin/sed --replace-fail /bin/cat ${lib.getExe' coreutils "cat"} \ --replace-fail /bin/echo ${lib.getExe' coreutils "echo"} \ --replace-fail /bin/grep ${lib.getExe gnugrep} \ --replace-fail /bin/sed ${lib.getExe gnused} ''; postInstall = '' test -d $out/libexec && ln -sr $out/libexec $out/bin if [[ -d $out/libexec ]]; then ln -sr $out/libexec $out/bin fi ''; postFixup = '' Loading @@ -50,9 +72,10 @@ let }; }; in { in { check_mssql_health = generic { pname = "check_mssql_health"; pname = "check-mssql-health"; version = "2.6.4.15"; sha256 = "12z0b3c2p18viy7s93r6bbl8fvgsqh80136d07118qhxshp1pwxg"; description = "Check plugin for Microsoft SQL Server"; Loading @@ -60,7 +83,7 @@ in { }; check_nwc_health = generic { pname = "check_nwc_health"; pname = "check-nwc-health"; version = "7.10.0.6"; sha256 = "092rhaqnk3403z0y60x38vgh65gcia3wrd6gp8mr7wszja38kxv2"; description = "Check plugin for network equipment"; Loading @@ -68,7 +91,7 @@ in { }; check_ups_health = generic { pname = "check_ups_health"; pname = "check-ups-health"; version = "2.8.3.3"; sha256 = "0qc2aglppwr9ms4p53kh9nr48625sqrbn46xs0k9rx5sv8hil9hm"; description = "Check plugin for UPSs"; Loading Loading
pkgs/servers/monitoring/nagios-plugins/labs_consol_de/default.nix +69 −46 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, fetchurl, autoreconfHook, makeWrapper , perlPackages, coreutils, gnused, gnugrep }: { autoreconfHook, coreutils, fetchFromGitHub, fetchurl, gnugrep, gnused, lib, makeWrapper, perlPackages, stdenv, }: let glplugin = fetchFromGitHub { Loading @@ -9,7 +19,14 @@ let sha256 = "047fwrycsl2vmpi4wl46fs6f8y191d6qc9ms5rvmrj1dm2r828ws"; }; generic = { pname, version, sha256, description, buildInputs, ... }: generic = { pname, version, sha256, description, buildInputs, }: stdenv.mkDerivation { inherit pname version; Loading @@ -20,20 +37,25 @@ let buildInputs = [ perlPackages.perl ] ++ buildInputs; nativeBuildInputs = [ autoreconfHook makeWrapper ]; nativeBuildInputs = [ autoreconfHook makeWrapper ]; prePatch = '' rm -rf GLPlugin ln -s ${glplugin} GLPlugin substituteInPlace plugins-scripts/Makefile.am \ --replace /bin/cat ${lib.getBin coreutils}/bin/cat \ --replace /bin/echo ${lib.getBin coreutils}/bin/echo \ --replace /bin/grep ${lib.getBin gnugrep}/bin/grep \ --replace /bin/sed ${lib.getBin gnused}/bin/sed --replace-fail /bin/cat ${lib.getExe' coreutils "cat"} \ --replace-fail /bin/echo ${lib.getExe' coreutils "echo"} \ --replace-fail /bin/grep ${lib.getExe gnugrep} \ --replace-fail /bin/sed ${lib.getExe gnused} ''; postInstall = '' test -d $out/libexec && ln -sr $out/libexec $out/bin if [[ -d $out/libexec ]]; then ln -sr $out/libexec $out/bin fi ''; postFixup = '' Loading @@ -50,9 +72,10 @@ let }; }; in { in { check_mssql_health = generic { pname = "check_mssql_health"; pname = "check-mssql-health"; version = "2.6.4.15"; sha256 = "12z0b3c2p18viy7s93r6bbl8fvgsqh80136d07118qhxshp1pwxg"; description = "Check plugin for Microsoft SQL Server"; Loading @@ -60,7 +83,7 @@ in { }; check_nwc_health = generic { pname = "check_nwc_health"; pname = "check-nwc-health"; version = "7.10.0.6"; sha256 = "092rhaqnk3403z0y60x38vgh65gcia3wrd6gp8mr7wszja38kxv2"; description = "Check plugin for network equipment"; Loading @@ -68,7 +91,7 @@ in { }; check_ups_health = generic { pname = "check_ups_health"; pname = "check-ups-health"; version = "2.8.3.3"; sha256 = "0qc2aglppwr9ms4p53kh9nr48625sqrbn46xs0k9rx5sv8hil9hm"; description = "Check plugin for UPSs"; Loading