Files
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

110 lines
2.5 KiB
Nix

{
autoreconfHook,
coreutils,
fetchFromGitHub,
gnugrep,
gnused,
lib,
makeWrapper,
perlPackages,
stdenv,
}:
let
generic =
{
pname,
version,
src,
description,
buildInputs,
}:
stdenv.mkDerivation {
inherit pname version src;
buildInputs = [ perlPackages.perl ] ++ buildInputs;
nativeBuildInputs = [
autoreconfHook
makeWrapper
];
postPatch = ''
substituteInPlace plugins-scripts/Makefile.am \
--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 = ''
if [[ -d $out/libexec ]]; then
ln -sr $out/libexec $out/bin
fi
'';
postFixup = ''
for f in $out/bin/* ; do
wrapProgram $f --prefix PERL5LIB : $PERL5LIB
done
'';
meta = {
homepage = "https://labs.consol.de/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ peterhoeg ];
inherit description;
};
};
in
{
check_mssql_health = generic rec {
pname = "check-mssql-health";
version = "2.7.7";
src = fetchFromGitHub {
owner = "lausser";
repo = "check_mssql_health";
rev = "refs/tags/${version}";
hash = "sha256-K6sGrms9z59a9rkZNulwKBexGF2Nkqqak/cRg12ynxc=";
fetchSubmodules = true;
};
description = "Check plugin for Microsoft SQL Server";
buildInputs = [ perlPackages.DBDsybase ];
};
check_nwc_health = generic rec {
pname = "check-nwc-health";
version = "11.7";
src = fetchFromGitHub {
owner = "lausser";
repo = "check_nwc_health";
rev = "refs/tags/${version}";
hash = "sha256-r8Cb9RnEohNp0GxMAIaj7e08dTWZhuV1jz4/b8tuJ6k=";
fetchSubmodules = true;
};
description = "Check plugin for network equipment";
buildInputs = [ perlPackages.NetSNMP ];
};
check_ups_health = generic rec {
pname = "check-ups-health";
version = "4.3.1.1";
src = fetchFromGitHub {
owner = "lausser";
repo = "check_ups_health";
rev = "refs/tags/${version}";
hash = "sha256-ZGSTPVJObP49/tDASOCh4wVdMKajheHD+xVTiFf101k=";
fetchSubmodules = true;
};
description = "Check plugin for UPSs";
buildInputs = [ perlPackages.NetSNMP ];
};
}