1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5, ncurses
6, openssl
7, pkg-config
8, Security
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "wiki-tui";
13 version = "0.7.0";
14
15 src = fetchFromGitHub {
16 owner = "Builditluc";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-vrWjX8WB9niZnBDIlMSj/NUuJxCkP4QoOLp+xTnvSjs=";
20 };
21
22 nativeBuildInputs = [
23 pkg-config
24 ];
25
26 buildInputs = [
27 ncurses
28 openssl
29 ] ++ lib.optionals stdenv.isDarwin [
30 Security
31 ];
32
33 cargoHash = "sha256-m3gxmoZVEVzqach7Oep943B4DhOUzrTB+Z6J/TvdCQ8=";
34
35 meta = with lib; {
36 description = "A simple and easy to use Wikipedia Text User Interface";
37 homepage = "https://github.com/builditluc/wiki-tui";
38 changelog = "https://github.com/Builditluc/wiki-tui/releases/tag/v${version}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ lom builditluc ];
41 };
42}