artichoke: init at 0-unstable-2025-06-01 (#414459)

authored by Aleksana and committed by GitHub 45b68968 60e64382

+58
+58
pkgs/by-name/ar/artichoke/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + llvmPackages, 6 + _experimental-update-script-combinators, 7 + unstableGitUpdater, 8 + nix-update-script, 9 + }: 10 + 11 + rustPlatform.buildRustPackage { 12 + pname = "artichoke"; 13 + version = "0-unstable-2025-06-01"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "artichoke"; 17 + repo = "artichoke"; 18 + rev = "7c35392d8c7622cd8ab8eccaee73d57633b2b901"; 19 + hash = "sha256-7YPExT+5F+5MMk/yLfG4Rk8ZDwsYfVKlkvIroFB22No="; 20 + }; 21 + 22 + cargoHash = "sha256-cN70yYYKhktUoswow63ZXHvfFbXDo1rUrTWm22LluCM="; 23 + 24 + nativeBuildInputs = [ 25 + rustPlatform.bindgenHook 26 + ]; 27 + 28 + doInstallCheck = true; 29 + installCheckPhase = '' 30 + runHook preInstallCheck 31 + 32 + stdout="$("$out/bin/artichoke" -e 'puts "Hello World!"')" 33 + [[ "$stdout" == 'Hello World!' ]] 34 + 35 + runHook postInstallCheck 36 + ''; 37 + 38 + passthru = { 39 + updateScript = _experimental-update-script-combinators.sequence [ 40 + (unstableGitUpdater { }) 41 + (nix-update-script { 42 + # Updating `cargoHash` 43 + extraArgs = [ "--version=skip" ]; 44 + }) 45 + ]; 46 + }; 47 + 48 + meta = { 49 + description = "Ruby implementation written in Rust and Ruby"; 50 + homepage = "https://www.artichokeruby.org/"; 51 + license = lib.licenses.mit; 52 + maintainers = with lib.maintainers; [ 53 + kachick 54 + ]; 55 + mainProgram = "artichoke"; 56 + platforms = with lib.platforms; unix ++ windows; 57 + }; 58 + }