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.
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user