uiua-unstable: fix update script

Recently a new `latest` release has been created which is automatically
updated to always contain binaries for the latest `main` branch [1].
This new release would have been used by `uiua-unstable.updateScript`,
however `uiua-unstable` should only be used for pre-releases like
release candidates and dev previews, not for the latest `main` branch.
Since `nix-update` doesn't seem to support ignoring specific versions,
the version regex of the `update-stable.sh` script is reused and
extended to also allow pre-releases like `0.16.0-dev.1`.

[1] https://github.com/uiua-lang/uiua/releases/tag/latest
This commit is contained in:
Defelo
2025-04-23 17:08:56 +02:00
parent a6e4ff3017
commit 3a43eb3a20
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update
nix-update --override-filename pkgs/by-name/ui/uiua/unstable.nix --version unstable uiua-unstable
nix-update --override-filename pkgs/by-name/ui/uiua/unstable.nix --version-regex '^(\d*\.\d*\.\d*.*)$' uiua-unstable