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

46 lines
1.1 KiB
Nix

{
fetchurl,
lib,
net-snmp,
nix-update-script,
stdenv,
versionCheckHook,
}:
stdenv.mkDerivation rec {
pname = "check_interfaces";
version = "1.4.4";
src = fetchurl {
url = "https://github.com/NETWAYS/check_interfaces/releases/download/v${version}/check_interfaces-${version}.tar.gz";
hash = "sha256-sQ2lee2gxyrl455tumMJ4EbKc8mYEDXl18Wik6daf5Q=";
};
buildInputs = [ net-snmp ];
configureFlags = [ "--libexecdir=${placeholder "out"}/bin" ];
enableParallelBuilding = true;
postInstall = ''
# Remove unnecessary header files
rm --recursive $out/include
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru = {
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/NETWAYS/check_interfaces/releases/tag/v${version}";
description = "Icinga check plugin for network hardware interfaces";
homepage = "https://github.com/NETWAYS/check_interfaces/";
license = with lib.licenses; [ gpl2Only ];
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ jwillikers ];
mainProgram = "check_interfaces";
};
}