lol
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "openapi-tui";
11 version = "0.10.2";
12
13 src = fetchFromGitHub {
14 owner = "zaghaghi";
15 repo = "openapi-tui";
16 rev = version;
17 hash = "sha256-rC0lfWZpiiAAShyVDqr1gKTeWmWC+gVp4UmL96Y81mE=";
18 };
19
20 cargoHash = "sha256-911ARjYvTNqLVVUWxATbtiKXOC9AqalFvDvp/qAef1Q=";
21
22 OPENSSL_NO_VENDOR = true;
23
24 nativeBuildInputs = [ pkg-config ];
25 buildInputs = [ openssl ];
26
27 meta = with lib; {
28 description = "Terminal UI to list, browse and run APIs defined with openapi spec";
29 homepage = "https://github.com/zaghaghi/openapi-tui";
30 license = licenses.mit;
31 maintainers = with maintainers; [ matthiasbeyer ];
32 mainProgram = "openapi-tui";
33 };
34}