From 496d448717d1770b7d6bb7238a50cda39e5a2bea Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Tue, 10 Nov 2026 23:45:16 +0700 Subject: [PATCH 1/6] gns3-server: 2.2.59 -> 2.2.61 - https://github.com/GNS3/gns3-server/releases/tag/v2.2.60 - https://github.com/GNS3/gns3-server/releases/tag/v2.2.61 --- pkgs/by-name/gn/gns3-server/package.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/gn/gns3-server/package.nix b/pkgs/by-name/gn/gns3-server/package.nix index a6da24660289..b8a129075464 100644 --- a/pkgs/by-name/gn/gns3-server/package.nix +++ b/pkgs/by-name/gn/gns3-server/package.nix @@ -14,29 +14,24 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "gns3-server"; - version = "2.2.59"; + version = "2.2.61"; pyproject = true; src = fetchFromGitHub { owner = "GNS3"; repo = "gns3-server"; tag = "v${finalAttrs.version}"; - hash = "sha256-xsiwD+o9M/ZwR8t+EA9mWxAlfSKLCvNr1U2qRcmSDzg="; + hash = "sha256-jLDD2sVWwVBjXv6tvxyYDwo2wEdzoH5uUjXc0IpZSq0="; }; - # GNS3 2.3.26 requires a static BusyBox for the Docker integration + # GNS3 2.2 requires a static BusyBox for the Docker integration prePatch = '' cp ${pkgsStatic.busybox}/bin/busybox gns3server/compute/docker/resources/bin/busybox ''; pythonRelaxDeps = [ - "aiofiles" "aiohttp" - "aiohttp-cors" - "jsonschema" "platformdirs" - "psutil" - "sentry-sdk" ]; build-system = with python3Packages; [ setuptools ]; @@ -45,7 +40,6 @@ python3Packages.buildPythonApplication (finalAttrs: { aiofiles aiohttp aiohttp-cors - async-generator async-timeout distro jinja2 @@ -57,7 +51,6 @@ python3Packages.buildPythonApplication (finalAttrs: { py-cpuinfo sentry-sdk truststore - yarl ]; postInstall = lib.optionalString (!stdenv.hostPlatform.isWindows) '' @@ -117,7 +110,7 @@ python3Packages.buildPythonApplication (finalAttrs: { API. ''; homepage = "https://www.gns3.com/"; - changelog = "https://github.com/GNS3/gns3-server/releases/tag/v${finalAttrs.version}"; + changelog = "https://github.com/GNS3/gns3-server/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ anthonyroussel ]; From 4377b216cb832578e4b3433a5b9fd6423d63f102 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Tue, 10 Nov 2026 23:45:21 +0700 Subject: [PATCH 2/6] gns3-gui: 2.2.59 -> 2.2.61 - https://github.com/GNS3/gns3-gui/releases/tag/v2.2.60 - https://github.com/GNS3/gns3-gui/releases/tag/v2.2.61 --- pkgs/by-name/gn/gns3-gui/package.nix | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/gn/gns3-gui/package.nix b/pkgs/by-name/gn/gns3-gui/package.nix index 1122f03bc456..5a3ff9d80a90 100644 --- a/pkgs/by-name/gn/gns3-gui/package.nix +++ b/pkgs/by-name/gn/gns3-gui/package.nix @@ -1,6 +1,5 @@ { fetchFromGitHub, - fetchpatch, gns3-gui, gns3-server, lib, @@ -12,22 +11,16 @@ python3Packages.buildPythonApplication (finalAttrs: { pname = "gns3-gui"; - version = "2.2.59"; + version = "2.2.61"; pyproject = true; src = fetchFromGitHub { owner = "GNS3"; repo = "gns3-gui"; tag = "v${finalAttrs.version}"; - hash = "sha256-eYtuGVRfgUFBLxGT0xfiMhbjoMzc6F/VHjI9VN3ADAs="; + hash = "sha256-BgLJC5boDCpQXr//5uans/Efqihmce+HCf4+xJAlxTE="; }; - pythonRelaxDeps = [ - "jsonschema" - "psutil" - "sentry-sdk" - ]; - nativeBuildInputs = [ qt6.wrapQtAppsHook ]; buildInputs = [ qt6.qtwayland ]; @@ -40,8 +33,6 @@ python3Packages.buildPythonApplication (finalAttrs: { psutil pyqt6 sentry-sdk - setuptools - sip truststore qdarkstyle ]; @@ -78,7 +69,7 @@ python3Packages.buildPythonApplication (finalAttrs: { download the official GNS3 VM). ''; homepage = "https://www.gns3.com/"; - changelog = "https://github.com/GNS3/gns3-gui/releases/tag/v${finalAttrs.version}"; + changelog = "https://github.com/GNS3/gns3-gui/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ anthonyroussel ]; From d55949be11285c88332419c8c4faa9d83dbb19e1 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 12 Nov 2026 11:23:02 +0700 Subject: [PATCH 3/6] gns3-server: build static busybox without pkgsStatic Use `busybox.override { enableStatic = true; useMusl = ...; }` instead of `pkgsStatic.busybox`, so that busybox is built with the regular stdenv instead of requiring the whole pkgsStatic musl cross toolchain. This reduces the build closure by ~1 GiB (29 fewer derivations). The runtime closure is unchanged. --- pkgs/by-name/gn/gns3-server/package.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/gn/gns3-server/package.nix b/pkgs/by-name/gn/gns3-server/package.nix index b8a129075464..88512e10e4a6 100644 --- a/pkgs/by-name/gn/gns3-server/package.nix +++ b/pkgs/by-name/gn/gns3-server/package.nix @@ -1,9 +1,10 @@ { + busybox, fetchFromGitHub, gns3-server, lib, + musl, nixosTests, - pkgsStatic, python3Packages, stdenv, testers, @@ -12,6 +13,12 @@ writeScript, }: +let + busybox-static = busybox.override { + enableStatic = true; + useMusl = lib.meta.availableOn stdenv.hostPlatform musl; + }; +in python3Packages.buildPythonApplication (finalAttrs: { pname = "gns3-server"; version = "2.2.61"; @@ -26,7 +33,7 @@ python3Packages.buildPythonApplication (finalAttrs: { # GNS3 2.2 requires a static BusyBox for the Docker integration prePatch = '' - cp ${pkgsStatic.busybox}/bin/busybox gns3server/compute/docker/resources/bin/busybox + cp ${busybox-static}/bin/busybox gns3server/compute/docker/resources/bin/busybox ''; pythonRelaxDeps = [ From 99aa1da0e19e23385b13f0bfb0745d668e5ff975 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 12 Nov 2026 12:50:59 +0700 Subject: [PATCH 4/6] gns3-server: add darwin support Docker and IOU are Linux-only upstream, so the static BusyBox and util-linux are only needed on Linux. Allow local networking for the aiohttp test servers and skip the Docker/IOU tests on Darwin. --- pkgs/by-name/gn/gns3-server/package.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/gn/gns3-server/package.nix b/pkgs/by-name/gn/gns3-server/package.nix index 88512e10e4a6..5ca8dc6e3ebb 100644 --- a/pkgs/by-name/gn/gns3-server/package.nix +++ b/pkgs/by-name/gn/gns3-server/package.nix @@ -31,8 +31,8 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-jLDD2sVWwVBjXv6tvxyYDwo2wEdzoH5uUjXc0IpZSq0="; }; - # GNS3 2.2 requires a static BusyBox for the Docker integration - prePatch = '' + # GNS3 2.2 requires a static BusyBox for the Docker integration (Linux-only) + prePatch = lib.optionalString stdenv.hostPlatform.isLinux '' cp ${busybox-static}/bin/busybox gns3server/compute/docker/resources/bin/busybox ''; @@ -64,8 +64,8 @@ python3Packages.buildPythonApplication (finalAttrs: { rm $out/bin/gns3loopback ''; - # util-linux (script program) is required for Docker support - makeWrapperArgs = [ + # util-linux (script program) is required for Docker support (Linux-only) + makeWrapperArgs = lib.optionals stdenv.hostPlatform.isLinux [ "--suffix" "PATH" ":" @@ -88,6 +88,13 @@ python3Packages.buildPythonApplication (finalAttrs: { # fails on ofborg because of lack of cpu vendor information "tests/controller/gns3vm/test_virtualbox_gns3_vm.py::test_cpu_vendor_id" "tests/controller/test_project.py" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Docker and IOU are only supported on Linux + "tests/compute/docker/test_docker_vm.py" + "tests/handlers/api/compute/test_capabilities.py" + "tests/handlers/api/compute/test_docker.py" + "tests/handlers/api/compute/test_iou.py" ]; passthru = { @@ -109,6 +116,8 @@ python3Packages.buildPythonApplication (finalAttrs: { ''; }; + __darwinAllowLocalNetworking = true; + meta = { description = "Graphical Network Simulator 3 server"; longDescription = '' @@ -119,7 +128,7 @@ python3Packages.buildPythonApplication (finalAttrs: { homepage = "https://www.gns3.com/"; changelog = "https://github.com/GNS3/gns3-server/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.darwin; maintainers = with lib.maintainers; [ anthonyroussel ]; mainProgram = "gns3server"; }; From 90a7d778f6c4554d4376931efd849d43214b5320 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 12 Nov 2026 12:51:02 +0700 Subject: [PATCH 5/6] gns3-gui: add darwin support --- pkgs/by-name/gn/gns3-gui/package.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/gn/gns3-gui/package.nix b/pkgs/by-name/gn/gns3-gui/package.nix index 5a3ff9d80a90..224adf00f357 100644 --- a/pkgs/by-name/gn/gns3-gui/package.nix +++ b/pkgs/by-name/gn/gns3-gui/package.nix @@ -5,6 +5,7 @@ lib, python3Packages, qt6, + stdenv, testers, writableTmpDirAsHomeHook, }: @@ -23,7 +24,12 @@ python3Packages.buildPythonApplication (finalAttrs: { nativeBuildInputs = [ qt6.wrapQtAppsHook ]; - buildInputs = [ qt6.qtwayland ]; + buildInputs = [ + qt6.qtbase + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + qt6.qtwayland + ]; build-system = with python3Packages; [ setuptools ]; @@ -71,7 +77,7 @@ python3Packages.buildPythonApplication (finalAttrs: { homepage = "https://www.gns3.com/"; changelog = "https://github.com/GNS3/gns3-gui/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.darwin; maintainers = with lib.maintainers; [ anthonyroussel ]; mainProgram = "gns3"; }; From bfd46ea98127e3b9e16e82f7a2f0d52bccaaa092 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 12 Nov 2026 13:29:56 +0700 Subject: [PATCH 6/6] nixosTests.gns3-server: fix running on darwin hosts --- nixos/tests/gns3-server.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/tests/gns3-server.nix b/nixos/tests/gns3-server.nix index 19aa1e984ed7..51b9b43ea5ff 100644 --- a/nixos/tests/gns3-server.nix +++ b/nixos/tests/gns3-server.nix @@ -1,4 +1,8 @@ -{ pkgs, lib, ... }: +{ config, lib, ... }: + +let + pkgs = config.node.pkgs; +in { name = "gns3-server"; meta.maintainers = [ lib.maintainers.anthonyroussel ];