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