parca-agent: 0.35.2 -> 0.36.0 (#378749)
[NixPkgs.git] / pkgs / by-name / cr / crates-tui / package.nix
blobe3a1a9e2f83a1bfa0ea314c51c3d380f41579535
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   openssl,
7   versionCheckHook,
8   nix-update-script,
9 }:
10 let
11   version = "0.1.24";
13 rustPlatform.buildRustPackage {
14   pname = "crates-tui";
15   inherit version;
17   src = fetchFromGitHub {
18     owner = "ratatui";
19     repo = "crates-tui";
20     tag = "v${version}";
21     hash = "sha256-yAMVl+3DP9NCjHc9X0qOd6zlJvaY3kcvnVBSS8JHtgU=";
22   };
24   cargoHash = "sha256-d79NgOGdxkg6zRpnBlievmPEVWIkY8gYLWdTMpGSPqo=";
26   nativeBuildInputs = [ pkg-config ];
27   buildInputs = [ openssl ];
29   nativeInstallCheckInputs = [ versionCheckHook ];
30   doInstallCheck = true;
32   passthru.updateScript = nix-update-script { };
34   meta = {
35     description = "TUI for exploring crates.io using Ratatui";
36     homepage = "https://github.com/ratatui/crates-tui";
37     license = with lib.licenses; [ mit ];
38     # See Cargo.toml: workspaces.metadata.dist.targets
39     # Other platforms may work but YMMV
40     platforms = [
41       "x86_64-linux"
42       "aarch64-darwin"
43       "x86_64-darwin"
44       "x86_64-windows"
45     ];
46     maintainers = with lib.maintainers; [ pluiedev ];
47     mainProgram = "crates-tui";
48   };