From c6ccef5d87b05a8cf4231d273a4111481d628f01 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 14 Mar 2026 16:18:29 +0100 Subject: [PATCH] box64: Set allowedVersions for passthru.updateScript Proper box64 releases so far all end in a dot followed by an even digit. Recent non-release tags have an uneven digit followed by a dash and a second digit. Set allowedVersions argument to gitUpdater to only the former are considered for updates. --- pkgs/applications/emulators/box64/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/emulators/box64/default.nix b/pkgs/applications/emulators/box64/default.nix index 35f9ffba24fc..683dbf2567cf 100644 --- a/pkgs/applications/emulators/box64/default.nix +++ b/pkgs/applications/emulators/box64/default.nix @@ -88,7 +88,10 @@ stdenv.mkDerivation (finalAttrs: { ''; passthru = { - updateScript = gitUpdater { rev-prefix = "v"; }; + updateScript = gitUpdater { + rev-prefix = "v"; + allowedVersions = "\\.[02468]$"; + }; tests.hello = runCommand "box64-test-hello" { nativeBuildInputs = [ finalAttrs.finalPackage ]; } '' BOX64_LOG=1 box64 ${lib.getExe hello-x86_64} --version 2>&1 | tee $out '';