uiua{,-unstable}: refactor
- use `tag` instead of `rev` in `fetchFromGitHub` - add `versionCheckHook`
This commit is contained in:
@@ -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,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,6 +1,6 @@
|
||||
rec {
|
||||
version = "0.14.1";
|
||||
rev = version;
|
||||
tag = version;
|
||||
hash = "sha256-+FiJYxB2Lb1B7l9QEuB/XzdEYgJZmYAQpKimRIhWwhc=";
|
||||
cargoHash = "sha256-0ZK87aX3akEPEXIsFrbOvTfhW24TZCuCcSVp+j8ylyg=";
|
||||
updateScript = ./update-unstable.sh;
|
||||
|
||||
Reference in New Issue
Block a user