uiua: add meta.updateScript
This commit is contained in:
parent
c669777f45
commit
b04dc42ba8
2 changed files with 8 additions and 0 deletions
|
@ -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
7
pkgs/by-name/ui/uiua/update.sh
Executable 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
|
Loading…
Reference in a new issue