2023-01-01 18:34:59 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, Security
|
|
|
|
}:
|
2021-10-10 03:50:44 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wiki-tui";
|
2023-07-23 05:31:21 +02:00
|
|
|
version = "0.8.0";
|
2021-10-10 03:50:44 +02:00
|
|
|
|
2021-11-05 21:10:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Builditluc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-23 05:31:21 +02:00
|
|
|
hash = "sha256-WEB6tzHeP7fX+KyNOqAADKHT6IE1t8af889XcHH/48Q=";
|
2021-10-10 03:50:44 +02:00
|
|
|
};
|
|
|
|
|
2023-01-01 18:34:59 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-10-10 03:50:44 +02:00
|
|
|
|
2023-01-01 18:34:59 +01:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
openssl
|
2023-03-10 23:55:17 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2023-01-01 18:34:59 +01:00
|
|
|
Security
|
|
|
|
];
|
2021-10-10 03:50:44 +02:00
|
|
|
|
2023-07-23 05:31:21 +02:00
|
|
|
cargoHash = "sha256-pLAUwkn4w/vwg/znBtjxc+og2yJn5uABY3Au9AYkpM4=";
|
2021-10-10 03:50:44 +02: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 18:34:59 +01:00
|
|
|
changelog = "https://github.com/Builditluc/wiki-tui/releases/tag/v${version}";
|
2021-10-10 03:50:44 +02:00
|
|
|
license = licenses.mit;
|
2023-08-12 00:41:21 +02:00
|
|
|
maintainers = with maintainers; [ lom builditluc matthiasbeyer ];
|
2021-10-10 03:50:44 +02:00
|
|
|
};
|
|
|
|
}
|