From 9005a984223e73b9a0ba6924d5c8fa5fed682af2 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 3 Jun 2026 14:52:37 +0200 Subject: [PATCH] corrscope: Add explicit passthru.updateScript Whatever updateScript this was inheriting from being a Python package produced changes that were nonsense. (attempts to bump from 0.11.0 (2025) to python5-macos (2023)) --- pkgs/by-name/co/corrscope/package.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/co/corrscope/package.nix b/pkgs/by-name/co/corrscope/package.nix index 4dd648b3fecf..70cfdedd6482 100644 --- a/pkgs/by-name/co/corrscope/package.nix +++ b/pkgs/by-name/co/corrscope/package.nix @@ -2,6 +2,7 @@ stdenv, lib, fetchFromGitHub, + gitUpdater, ffmpeg, python3Packages, qt6Packages, @@ -74,12 +75,18 @@ python3Packages.buildPythonApplication (finalAttrs: { ) ''; - passthru.tests.version = testers.testVersion { - package = corrscope; - # Tries writing to - # - $HOME/.local/share/corrscope on Linux - # - $HOME/Library/Application Support/corrscope on Darwin - command = "env HOME=$TMPDIR ${lib.getExe corrscope} --version"; + passthru = { + tests.version = testers.testVersion { + package = corrscope; + # Tries writing to + # - $HOME/.local/share/corrscope on Linux + # - $HOME/Library/Application Support/corrscope on Darwin + command = "env HOME=$TMPDIR ${lib.getExe corrscope} --version"; + }; + + updateScript = gitUpdater { + allowedVersions = "^[0-9.]+$"; + }; }; meta = {