uiua: add meta.updateScript

This commit is contained in:
TomaSajt 2024-02-26 11:54:02 +01:00
parent c669777f45
commit b04dc42ba8
No known key found for this signature in database
GPG key ID: F011163C050122A1
2 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,7 @@ rustPlatform.buildRustPackage rec {
buildFeatures = lib.optional audioSupport "audio";
passthru.updateScript = ./update.sh;
passthru.tests.run = runCommand "uiua-test-run" { nativeBuildInputs = [ uiua ]; } ''
uiua init
diff -U3 --color=auto <(uiua run main.ua) <(echo '"Hello, World!"')

7
pkgs/by-name/ui/uiua/update.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update common-updater-scripts
nix-update uiua
EXT_VER=$(curl https://raw.githubusercontent.com/uiua-lang/uiua-vscode/main/package.json | jq -r .version)
update-source-version vscode-extensions.uiua-lang.uiua-vscode $EXT_VER