From 7b252fb4edd20232f4e10719fc6f04fbd156df71 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 28 Apr 2026 20:55:16 +0200 Subject: [PATCH 1/3] netbox: 4.5.7 -> 4.5.9 --- pkgs/by-name/ne/netbox_4_5/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ne/netbox_4_5/package.nix b/pkgs/by-name/ne/netbox_4_5/package.nix index 48015feff904..563d23e6b49b 100644 --- a/pkgs/by-name/ne/netbox_4_5/package.nix +++ b/pkgs/by-name/ne/netbox_4_5/package.nix @@ -16,14 +16,14 @@ let in py.pkgs.buildPythonApplication rec { pname = "netbox"; - version = "4.5.7"; + version = "4.5.9"; pyproject = false; src = fetchFromGitHub { owner = "netbox-community"; repo = "netbox"; tag = "v${version}"; - hash = "sha256-8oOlDtTVeKDlaWt3JDy9wc1oUTTJPSoHd5O3YxbE50g="; + hash = "sha256-S8/2ZLYhYKBEpz3EGTyQPAPexX4se3MnmaH5aStVEj0="; }; patches = [ From 9c76ff315748e4f2dc057eff506985c63d9d381b Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 28 Apr 2026 20:56:01 +0200 Subject: [PATCH 2/3] netbox: fix use of django-tables2 3.0 fixes #512843 This pulls a patch that was reverted, because upstream wanted to wait for a new major NetBox release. --- pkgs/by-name/ne/netbox_4_5/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/ne/netbox_4_5/package.nix b/pkgs/by-name/ne/netbox_4_5/package.nix index 563d23e6b49b..9df6802b9991 100644 --- a/pkgs/by-name/ne/netbox_4_5/package.nix +++ b/pkgs/by-name/ne/netbox_4_5/package.nix @@ -2,6 +2,7 @@ lib, fetchFromGitHub, python3, + fetchpatch2, plugins ? _ps: [ ], nixosTests, nix-update-script, @@ -28,6 +29,12 @@ py.pkgs.buildPythonApplication rec { patches = [ ./custom-static-root.patch + # TODO: check if change is applied upstream before upgrading to NetBox v4.6 + (fetchpatch2 { + name = "upgrade-django-tables2-v3.0.patch"; + url = "https://github.com/netbox-community/netbox/commit/d57346d9f0eef8126eafcd5033ea43864faeaf0d.patch"; + hash = "sha256-6/wdd8wDVT4eqDKMNx8tmoPTDvw8OE7atf9nzg3LZzk="; + }) ]; dependencies = From 9bdc55cfb71dc8a74c57ec4bc97d024c6c799a84 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 28 Apr 2026 20:58:02 +0200 Subject: [PATCH 3/3] nixos/netbox: increase start timeout The service kept failing on my machine when running the test, which means it would propaply fail on a potato machine, and we should be nice to potatoes! --- nixos/modules/services/web-apps/netbox.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/netbox.nix b/nixos/modules/services/web-apps/netbox.nix index d380ab60bc41..65f761373cda 100644 --- a/nixos/modules/services/web-apps/netbox.nix +++ b/nixos/modules/services/web-apps/netbox.nix @@ -393,7 +393,7 @@ in ${lib.concatStringsSep " " cfg.gunicornArgs} ''; PrivateTmp = true; - TimeoutStartSec = lib.mkDefault "5min"; + TimeoutStartSec = lib.mkDefault "10min"; }; };