amber-lang: add versionCheckHook, include unstable in updateScript

This commit is contained in:
Ilaï Deutel
2026-07-13 12:35:43 -04:00
parent d76caa6c7b
commit 61af9b9ab1
+7 -1
View File
@@ -7,6 +7,7 @@
gnused,
makeWrapper,
installShellFiles,
versionCheckHook,
stdenv,
runCommand,
amber-lang,
@@ -62,8 +63,13 @@ rustPlatform.buildRustPackage rec {
--bash <($out/bin/amber completion)
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; };
tests.run = runCommand "amber-lang-eval-test" { nativeBuildInputs = [ amber-lang ]; } ''
diff -U3 --color=auto <(amber eval 'echo "Hello, World"') <(echo 'Hello, World')
touch $out