Tom Hubrecht
7ab63fb4a5
All checks were successful
build configuration / build_and_cache_geo02 (push) Successful in 1m36s
build configuration / build_and_cache_geo01 (push) Successful in 1m36s
build configuration / build_and_cache_rescue01 (push) Successful in 1m37s
build configuration / build_and_cache_storage01 (push) Successful in 1m41s
build configuration / build_and_cache_compute01 (push) Successful in 1m52s
build configuration / build_and_cache_vault01 (push) Successful in 1m53s
lint / check (push) Successful in 22s
build configuration / build_and_cache_web02 (push) Successful in 1m20s
build configuration / build_and_cache_bridge01 (push) Successful in 1m7s
build configuration / build_and_cache_web03 (push) Successful in 1m20s
build configuration / build_and_cache_web01 (push) Successful in 1m50s
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchgit,
|
|
ethtool,
|
|
dmidecode,
|
|
ipmitool,
|
|
lldpd,
|
|
lshw,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "netbox-agent";
|
|
version = "unstable-2023-03-19";
|
|
pyproject = true;
|
|
|
|
src = fetchgit {
|
|
url = "https://git.dgnum.eu/DGNum/netbox-agent";
|
|
rev = "424283239658516feb34c0f68496775350b1bf22";
|
|
hash = "sha256-sp1QVy8AIezR2LRDDYS9G0g0GQRwGKGmEE7ykITPxtY=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
wheel
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
distro
|
|
jsonargparse
|
|
netaddr
|
|
(callPackage ./netifaces2.nix { })
|
|
packaging
|
|
pynetbox
|
|
python-slugify
|
|
pyyaml
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/netbox_agent \
|
|
--prefix PATH ":" ${
|
|
lib.makeBinPath [
|
|
ethtool
|
|
dmidecode
|
|
ipmitool
|
|
lldpd
|
|
lshw
|
|
]
|
|
}
|
|
'';
|
|
|
|
pythonImportsCheck = [ "netbox_agent" ];
|
|
|
|
meta = with lib; {
|
|
description = "Netbox agent to run on your infrastructure's servers";
|
|
homepage = "https://git.dgnum.eu/DGNum/netbox-agent";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
mainProgram = "netbox_agent";
|
|
};
|
|
}
|