uiua{,-unstable}: refactor

- use `tag` instead of `rev` in `fetchFromGitHub`
- add `versionCheckHook`
This commit is contained in:
Defelo
2025-01-05 02:46:16 +01:00
parent 327c2301cc
commit 0d95bdb72c
3 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -6,6 +6,7 @@
rustPlatform,
fetchFromGitHub,
pkg-config,
versionCheckHook,
libffi,
audioSupport ? true,
@@ -34,7 +35,7 @@ lib.fix (
src = fetchFromGitHub {
owner = "uiua-lang";
repo = "uiua";
inherit (versionInfo) rev hash;
inherit (versionInfo) tag hash;
};
nativeBuildInputs =
@@ -50,6 +51,10 @@ lib.fix (
++ lib.optional audioSupport "audio"
++ lib.optional webcamSupport "webcam";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = versionInfo.updateScript;
passthru.tests.run = runCommand "uiua-test-run" { nativeBuildInputs = [ uiua ]; } ''
uiua init
+1 -1
View File
@@ -1,6 +1,6 @@
rec {
version = "0.14.1";
rev = version;
tag = version;
hash = "sha256-+FiJYxB2Lb1B7l9QEuB/XzdEYgJZmYAQpKimRIhWwhc=";
cargoHash = "sha256-0ZK87aX3akEPEXIsFrbOvTfhW24TZCuCcSVp+j8ylyg=";
updateScript = ./update-stable.sh;
+1 -1
View File
@@ -1,6 +1,6 @@
rec {
version = "0.14.1";
rev = version;
tag = version;
hash = "sha256-+FiJYxB2Lb1B7l9QEuB/XzdEYgJZmYAQpKimRIhWwhc=";
cargoHash = "sha256-0ZK87aX3akEPEXIsFrbOvTfhW24TZCuCcSVp+j8ylyg=";
updateScript = ./update-unstable.sh;