Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
llvmPackages,
|
|
_experimental-update-script-combinators,
|
|
unstableGitUpdater,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "artichoke";
|
|
version = "0-unstable-2025-09-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "artichoke";
|
|
repo = "artichoke";
|
|
rev = "8227e6dbb298631c67b4ca2cc4c911d0ef87f38a";
|
|
hash = "sha256-Pyffs4QB/SkayRwlMmIVagNiamznJp4Dt3nqRDJYfqU=";
|
|
};
|
|
|
|
cargoHash = "sha256-JD+qt0pu5wxIuLa3Bd9eadQFE7dyKzqxsAKPebG7+Zg=";
|
|
|
|
nativeBuildInputs = [
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
stdout="$("$out/bin/artichoke" -e 'puts "Hello World!"')"
|
|
[[ "$stdout" == 'Hello World!' ]]
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = _experimental-update-script-combinators.sequence [
|
|
(unstableGitUpdater { })
|
|
(nix-update-script {
|
|
# Updating `cargoHash`
|
|
extraArgs = [ "--version=skip" ];
|
|
})
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Ruby implementation written in Rust and Ruby";
|
|
homepage = "https://www.artichokeruby.org/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
kachick
|
|
];
|
|
mainProgram = "artichoke";
|
|
platforms = with lib.platforms; unix ++ windows;
|
|
};
|
|
}
|