2023-01-01 17:34:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, Security
|
|
|
|
}:
|
2021-10-10 01:50:44 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wiki-tui";
|
2023-08-18 12:09:21 +00:00
|
|
|
version = "0.8.2";
|
2021-10-10 01:50:44 +00:00
|
|
|
|
2021-11-05 20:10:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Builditluc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-18 12:09:21 +00:00
|
|
|
hash = "sha256-euyg4wYWYerYT3hKdOCjokx8lJldGN7E3PHimDgQy3U=";
|
2021-10-10 01:50:44 +00:00
|
|
|
};
|
|
|
|
|
2023-01-01 17:34:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-10-10 01:50:44 +00:00
|
|
|
|
2023-01-01 17:34:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
openssl
|
2023-03-10 22:55:17 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2023-01-01 17:34:59 +00:00
|
|
|
Security
|
|
|
|
];
|
2021-10-10 01:50:44 +00:00
|
|
|
|
2023-08-18 12:09:21 +00:00
|
|
|
cargoHash = "sha256-rKTR7vKt8woWAn7XgNYFiWu4KSiZYhaH+PLEIOfbNIY=";
|
2021-10-10 01:50:44 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and easy to use Wikipedia Text User Interface";
|
|
|
|
homepage = "https://github.com/builditluc/wiki-tui";
|
2023-01-01 17:34:59 +00:00
|
|
|
changelog = "https://github.com/Builditluc/wiki-tui/releases/tag/v${version}";
|
2021-10-10 01:50:44 +00:00
|
|
|
license = licenses.mit;
|
2023-08-11 22:41:21 +00:00
|
|
|
maintainers = with maintainers; [ lom builditluc matthiasbeyer ];
|
2021-10-10 01:50:44 +00:00
|
|
|
};
|
|
|
|
}
|