2023-05-14 00:38:13 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, ncurses
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
2019-12-05 21:15:00 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "taizen";
|
2023-06-21 15:30:05 +01:00
|
|
|
version = "unstable-2023-06-05";
|
2019-12-05 21:15:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NerdyPepper";
|
|
|
|
repo = pname;
|
2023-06-21 15:30:05 +01:00
|
|
|
rev = "5486cd4f4c5aa4e0abbcee180ad2ec22839abd31";
|
|
|
|
hash = "sha256-pGcD3+3Ds3U8NuNySaDnz0zzAvZlSDte1jRPdM5qrZA=";
|
2019-12-05 21:15:00 +00:00
|
|
|
};
|
|
|
|
|
2023-06-21 15:30:05 +01:00
|
|
|
cargoHash = "sha256-2X9ZhqaQ6Y+mwXTMbvBQWLR24+KYYqjIqQy/8XqGi18=";
|
2023-05-14 00:38:13 +01:00
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-12-05 21:15:00 +00:00
|
|
|
|
2023-05-14 00:38:13 +01:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
2019-12-05 21:15:00 +00:00
|
|
|
meta = with lib; {
|
2023-05-14 00:38:13 +01:00
|
|
|
description = "curses based mediawiki browser";
|
2023-05-14 00:33:48 +01:00
|
|
|
homepage = "https://github.com/nerdypepper/taizen";
|
2019-12-05 21:15:00 +00:00
|
|
|
license = licenses.mit;
|
2023-05-14 00:38:13 +01:00
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "taizen";
|
2019-12-05 21:15:00 +00:00
|
|
|
};
|
|
|
|
}
|