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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
966 B
Nix
Raw Normal View History

2024-08-14 09:24:25 +00:00
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
ncurses,
openssl,
pkg-config,
Security,
2023-01-01 17:34:59 +00:00
}:
2021-10-10 01:50:44 +00:00
rustPlatform.buildRustPackage rec {
pname = "wiki-tui";
2024-12-04 18:59:17 +00:00
version = "0.9.1";
2021-10-10 01:50:44 +00:00
2021-11-05 20:10:43 +00:00
src = fetchFromGitHub {
owner = "Builditluc";
repo = "wiki-tui";
2021-11-05 20:10:43 +00:00
rev = "v${version}";
2024-12-04 18:59:17 +00:00
hash = "sha256-eTDxRrTP9vX7F1lmDCuF6g1pfaZChqB8Pv1kfrd7I9w=";
2021-10-10 01:50:44 +00:00
};
2024-08-14 09:24:25 +00:00
nativeBuildInputs = [ pkg-config ];
2021-10-10 01:50:44 +00:00
2023-01-01 17:34:59 +00:00
buildInputs = [
ncurses
openssl
2024-08-14 09:24:25 +00:00
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
2021-10-10 01:50:44 +00:00
2024-12-04 18:59:17 +00:00
cargoHash = "sha256-fLA7dF91mEgjTnbhujTKaHX+qmpzYaqzL8cc/x+mrUk=";
2021-10-10 01:50:44 +00:00
meta = with lib; {
description = "Simple and easy to use Wikipedia Text User Interface";
homepage = "https://github.com/builditluc/wiki-tui";
2023-01-01 17:34:59 +00:00
changelog = "https://github.com/Builditluc/wiki-tui/releases/tag/v${version}";
2021-10-10 01:50:44 +00:00
license = licenses.mit;
2024-08-14 09:24:25 +00:00
maintainers = with maintainers; [
lom
builditluc
matthiasbeyer
];
2023-11-23 21:09:35 +00:00
mainProgram = "wiki-tui";
2021-10-10 01:50:44 +00:00
};
}