uiua-unstable: init at 0.14.0-dev.6

This commit is contained in:
TomaSajt
2024-12-07 23:15:50 +01:00
parent 8c3258c180
commit 3c1facf9a7
6 changed files with 29 additions and 7 deletions
+8 -6
View File
@@ -12,21 +12,23 @@
# passthru.tests.run
runCommand,
uiua,
unstable ? false,
}:
let
versionInfo = import (if unstable then ./unstable.nix else ./stable.nix);
in
rustPlatform.buildRustPackage rec {
pname = "uiua";
version = "0.13.0";
inherit (versionInfo) version cargoHash;
src = fetchFromGitHub {
owner = "uiua-lang";
repo = "uiua";
rev = version;
hash = "sha256-5IqJ/lvozXzc7LRUzxpG04M3Nir+3h+GoL7dqTgC9J8=";
inherit (versionInfo) rev hash;
};
cargoHash = "sha256-0hbE2ZH7daw/VQLe51CxOIborABDF0x00kTyx9NCs9g=";
nativeBuildInputs =
lib.optionals (webcamSupport || stdenv.hostPlatform.isDarwin) [ rustPlatform.bindgenHook ]
++ lib.optionals audioSupport [ pkg-config ];
@@ -35,7 +37,7 @@ rustPlatform.buildRustPackage rec {
buildFeatures = lib.optional audioSupport "audio" ++ lib.optional webcamSupport "webcam";
passthru.updateScript = ./update.sh;
passthru.updateScript = versionInfo.updateScript;
passthru.tests.run = runCommand "uiua-test-run" { nativeBuildInputs = [ uiua ]; } ''
uiua init
diff -U3 --color=auto <(uiua run main.ua) <(echo '"Hello, World!"')
+7
View File
@@ -0,0 +1,7 @@
rec {
version = "0.13.0";
rev = version;
hash = "sha256-5IqJ/lvozXzc7LRUzxpG04M3Nir+3h+GoL7dqTgC9J8=";
cargoHash = "sha256-0hbE2ZH7daw/VQLe51CxOIborABDF0x00kTyx9NCs9g=";
updateScript = ./update-stable.sh;
}
+7
View File
@@ -0,0 +1,7 @@
rec {
version = "0.14.0-dev.6";
rev = version;
hash = "sha256-YRv4i014xD4d8YN5PuMsa06+7kZgISPBGkKrVLU5ZN0=";
cargoHash = "sha256-GYBHaYGmKcV0Gw1I4IWzfmecHwQtb2ys5bMguqfo8S0=";
updateScript = ./update-unstable.sh;
}
@@ -1,7 +1,7 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update common-updater-scripts
nix-update uiua
nix-update --override-filename pkgs/by-name/ui/uiua/stable.nix --version-regex '^(\d*\.\d*\.\d*)$' 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
+4
View File
@@ -0,0 +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 uiua-unstable
+2
View File
@@ -7109,6 +7109,8 @@ with pkgs;
babashka-unwrapped = callPackage ../development/interpreters/babashka { };
babashka = callPackage ../development/interpreters/babashka/wrapped.nix { };
uiua-unstable = callPackage ../by-name/ui/uiua/package.nix { unstable = true; };
# BQN interpreters and compilers
mbqn = bqn;