netbox: add passthru.plugins

This commit is contained in:
Nico Felbinger
2026-05-19 22:01:16 +02:00
parent 507b9f4d07
commit b6d8e841f9
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -122,6 +122,15 @@ py.pkgs.buildPythonApplication rec {
inherit (nixosTests) netbox-upgrade;
};
updateScript = nix-update-script { };
plugins = lib.recurseIntoAttrs (
lib.makeExtensible (
self:
lib.packagesFromDirectoryRecursive {
inherit (py.pkgs) callPackage;
directory = ./plugins;
}
)
);
};
meta = {
+2
View File
@@ -2864,6 +2864,8 @@ with pkgs;
# Not in aliases because it wouldn't get picked up by callPackage
netbox = netbox_4_5;
netboxPlugins = recurseIntoAttrs netbox.plugins;
netcap-nodpi = callPackage ../by-name/ne/netcap/package.nix {
withDpi = false;
};