base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ir / irust / package.nix
blob7f60b7aec8d6a593e85d838776f6344d0f839686
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5   makeWrapper,
6   cargo,
7   rustfmt,
8   cargo-show-asm,
9   cargo-expand,
10   clang,
11   # Workaround to allow easily overriding runtime inputs
12   runtimeInputs ? [
13     cargo
14     rustfmt
15     cargo-show-asm
16     cargo-expand
17     clang
18   ],
19   nix-update-script,
22 rustPlatform.buildRustPackage rec {
23   pname = "irust";
24   version = "1.71.24";
26   src = fetchFromGitHub {
27     owner = "sigmaSd";
28     repo = "IRust";
29     rev = "irust@${version}";
30     hash = "sha256-L9iSTa0KlAXVYA1PgLaxB0eHoOGrzGE49Km3jBq4jWo=";
31   };
33   cargoHash = "sha256-nF6tmA7IcgPG8EoFzwJa7zYKx9ezhpjIIa1tZLO0rvQ=";
35   nativeBuildInputs = [ makeWrapper ];
37   postFixup = ''
38     wrapProgram $out/bin/irust \
39       --suffix PATH : ${lib.makeBinPath runtimeInputs}
40   '';
42   checkFlags = [
43     "--skip=repl"
44     "--skip=printer::tests"
45   ];
47   passthru.updateScript = nix-update-script { };
49   meta = with lib; {
50     description = "Cross Platform Rust Repl";
51     homepage = "https://github.com/sigmaSd/IRust";
52     license = licenses.mit;
53     maintainers = with maintainers; [ lelgenio ];
54     mainProgram = "irust";
55   };