nixpkgs/pkgs/misc/wiki-tui/default.nix

32 lines
898 B
Nix
Raw Normal View History

2021-11-05 23:30:48 +03:00
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, nix-update-script, Security }:
2021-10-10 04:50:44 +03:00
rustPlatform.buildRustPackage rec {
pname = "wiki-tui";
2021-11-07 04:45:22 +03:00
version = "0.4.2";
2021-10-10 04:50:44 +03:00
2021-11-05 23:10:43 +03:00
src = fetchFromGitHub {
owner = "Builditluc";
repo = pname;
rev = "v${version}";
2021-11-07 04:45:22 +03:00
sha256 = "sha256-TWpCmHG07dv0/hXGpo71Ie0uDRqs6yywHzcv0Hpi8Sc=";
2021-10-10 04:50:44 +03:00
};
2021-11-05 23:30:48 +03:00
buildInputs = [ ncurses openssl ] ++ lib.optional stdenv.isDarwin Security;
2021-10-10 04:50:44 +03:00
nativeBuildInputs = [ pkg-config ];
2021-11-07 04:45:22 +03:00
cargoSha256 = "sha256-tJhbIsmh4zw1Dhvc2jE0N1cTE4//DOe3rDzDVNiTigA=";
2021-11-05 23:10:43 +03:00
passthru.updateScript = nix-update-script {
attrPath = pname;
};
2021-10-10 04:50:44 +03: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; [ legendofmiracles ];
mainProgram = "wiki-tui";
};
}