corrscope: Add explicit passthru.updateScript (#527549)

This commit is contained in:
Cosima Neidahl
2026-06-07 13:18:01 +00:00
committed by GitHub
+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 = {