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
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
makeWrapper,
|
|
cargo,
|
|
rustfmt,
|
|
cargo-show-asm,
|
|
cargo-expand,
|
|
clang,
|
|
# Workaround to allow easily overriding runtime inputs
|
|
runtimeInputs ? [
|
|
cargo
|
|
rustfmt
|
|
cargo-show-asm
|
|
cargo-expand
|
|
clang
|
|
],
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "irust";
|
|
version = "1.76.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sigmaSd";
|
|
repo = "IRust";
|
|
rev = "irust@${version}";
|
|
hash = "sha256-bZKFoN6hr/TLTvGAWUXS+S3RnYhdirUeGz30LYbgA7g=";
|
|
};
|
|
|
|
cargoHash = "sha256-lcnKiJCFN/bN/4R6VIhut2Xz3ueYPgXkr4dsYH57d9g=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/irust \
|
|
--suffix PATH : ${lib.makeBinPath runtimeInputs}
|
|
'';
|
|
|
|
checkFlags = [
|
|
"--skip=repl"
|
|
"--skip=printer::tests"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Cross Platform Rust Repl";
|
|
homepage = "https://github.com/sigmaSd/IRust";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lelgenio ];
|
|
mainProgram = "irust";
|
|
};
|
|
}
|