3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/wiki-tui/default.nix

27 lines
774 B
Nix
Raw Normal View History

2022-01-01 17:55:14 +00:00
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, Security, fetchpatch }:
2021-10-10 02:50:44 +01:00
rustPlatform.buildRustPackage rec {
pname = "wiki-tui";
2022-01-12 13:28:47 +00:00
version = "0.4.4";
2021-10-10 02:50:44 +01:00
2021-11-05 20:10:43 +00:00
src = fetchFromGitHub {
owner = "Builditluc";
repo = pname;
rev = "v${version}";
2022-01-12 13:28:47 +00:00
sha256 = "sha256-IkPv6oPdwfuIQrqQGqZAJ0b9OPRiA3GWDQuPXM/+fY4=";
2021-10-10 02:50:44 +01:00
};
2021-11-05 20:30:48 +00:00
buildInputs = [ ncurses openssl ] ++ lib.optional stdenv.isDarwin Security;
2021-10-10 02:50:44 +01:00
nativeBuildInputs = [ pkg-config ];
2022-01-12 13:28:47 +00:00
cargoSha256 = "sha256-/56KsEg6deeROERWLd9lX+7v6n5Dx1VCzdr/GtPFuGo=";
2021-10-10 02:50:44 +01: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;
maintainers = with maintainers; [ lom ];
2021-10-10 02:50:44 +01:00
};
}