2022-01-03 16:56:52 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, Security, fetchpatch }:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wiki-tui";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.4.5";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Builditluc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-IMNHsmL1L+zfGxfdTxJ4HBGiQOzWmYVE0P3ZInbMVl0=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ ncurses openssl ] ++ lib.optional stdenv.isDarwin Security;
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
cargoSha256 = "sha256-Q8Xl6L41cDeDN370owAAL9xZhdyUuDKrPlZxG3eg87c=";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and easy to use Wikipedia Text User Interface";
|
|
|
|
homepage = "https://github.com/builditluc/wiki-tui";
|
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ lom ];
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|