summary refs log tree commit diff
path: root/pkgs/misc/wiki-tui/default.nix
blob: b07dd8c731b13a846281c0b4e7f72a006c57bfc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, rustPlatform, fetchCrate, ncurses, openssl, pkg-config }:

rustPlatform.buildRustPackage rec {
  pname = "wiki-tui";
  version = "0.3.4";

  src = fetchCrate {
    inherit pname version;
    sha256 = "sha256-H+C1AbZ2zUhw6TNlSPaNaNuY5iNf39JW4q2g6uolevM=";
  };

  buildInputs = [ ncurses openssl ];

  nativeBuildInputs = [ pkg-config ];

  cargoSha256 = "sha256-PIt592nGtNEREQMukqRl/6KSJ/P32fWucHEMyOOc7BA=";

  meta = with lib; {
    description = "A simple and easy to use Wikipedia Text User Interface";
    homepage = "https://github.com/builditluc/wiki-tui";
    license = licenses.mit;
    maintainers = with maintainers; [ legendofmiracles ];
    mainProgram = "wiki-tui";
  };
}