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))
This commit is contained in:
OPNA2608
2026-06-03 14:52:37 +02:00
parent 5d45c8aeb0
commit 9005a98422
+13 -6
View File
@@ -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 = {