corrscope: Add explicit passthru.updateScript (#527549)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user