2022-01-01 18:55:14 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, Security, fetchpatch }:
|
2021-10-10 03:50:44 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wiki-tui";
|
2022-08-01 23:57:47 +02:00
|
|
|
version = "0.5.1";
|
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}";
|
2022-08-01 23:57:47 +02:00
|
|
|
sha256 = "sha256-kcVfqj5vRfPcF6lO1Ley3ctZajNA02jUqQRlpi3MkXc=";
|
2021-10-10 03:50:44 +02:00
|
|
|
};
|
|
|
|
|
2021-11-05 21:30:48 +01:00
|
|
|
buildInputs = [ ncurses openssl ] ++ lib.optional stdenv.isDarwin Security;
|
2021-10-10 03:50:44 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-08-01 23:57:47 +02:00
|
|
|
cargoSha256 = "sha256-OW2kutjvQC9neiguixTdJx2hUFsnmQhR9DbniBr6V8w=";
|
2022-04-16 19:45:53 +02:00
|
|
|
|
|
|
|
# Tests fail with this error: `found argument --test-threads which was not expected`
|
|
|
|
doCheck = false;
|
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";
|
|
|
|
license = licenses.mit;
|
2022-04-17 12:28:34 +02:00
|
|
|
maintainers = with maintainers; [ lom builditluc ];
|
2021-10-10 03:50:44 +02:00
|
|
|
};
|
|
|
|
}
|