diff --git a/pkgs/by-name/am/amber-lang/package.nix b/pkgs/by-name/am/amber-lang/package.nix index 1ab8c493eebb..69f41081cc91 100644 --- a/pkgs/by-name/am/amber-lang/package.nix +++ b/pkgs/by-name/am/amber-lang/package.nix @@ -7,20 +7,21 @@ makeWrapper, runCommand, amber-lang, + nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "amber-lang"; - version = "0.3.3-alpha"; + version = "0.3.5-alpha"; src = fetchFromGitHub { - owner = "Ph0enixKM"; - repo = "Amber"; + owner = "amber-lang"; + repo = "amber"; rev = version; - hash = "sha256-Al1zTwQufuVGSlttf02s5uI3cyCNDShhzMT3l9Ctv3Y="; + hash = "sha256-wf0JNWNliDGNvlbWoatPqDKmVaBzHeCKOvJWuE9PnpQ="; }; - cargoHash = "sha256-HbkIkCVy2YI+nP5t01frXBhlp/rCsB6DwLL53AHJ4vE="; + cargoHash = "sha256-6T4WcQkCMR8W67w0uhhN8W0FlLsrTUMa3/xRXDtW4Es="; preConfigure = '' substituteInPlace src/compiler.rs \ @@ -36,14 +37,22 @@ rustPlatform.buildRustPackage rec { util-linux ]; + checkFlags = [ + "--skip=tests::extra::download" + "--skip=tests::formatter::all_exist" + ]; + postInstall = '' wrapProgram "$out/bin/amber" --prefix PATH : "${lib.makeBinPath [ bc ]}" ''; - passthru.tests.run = runCommand "amber-lang-eval-test" { nativeBuildInputs = [ amber-lang ]; } '' - diff -U3 --color=auto <(amber -e 'echo "Hello, World"') <(echo 'Hello, World') - touch $out - ''; + passthru = { + updateScript = nix-update-script { }; + tests.run = runCommand "amber-lang-eval-test" { nativeBuildInputs = [ amber-lang ]; } '' + diff -U3 --color=auto <(amber -e 'echo "Hello, World"') <(echo 'Hello, World') + touch $out + ''; + }; meta = with lib; { description = "Programming language compiled to bash";