depot/third_party/nixpkgs/pkgs/by-name/ma/manga-tui/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

50 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
sqlite,
stdenv,
darwin,
}:
let
version = "0.3.1";
in
rustPlatform.buildRustPackage {
pname = "manga-tui";
inherit version;
src = fetchFromGitHub {
owner = "josueBarretogit";
repo = "manga-tui";
rev = "v${version}";
hash = "sha256-672AuQWviwihnUS3G0xSn4IAMHy0fPE1VLDfu8wrPGg=";
};
cargoHash = "sha256-yf0hISz/jHtrO1clTSIKfxFiwI+W0Mu3mY+XW6+ynJU=";
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
openssl
sqlite
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
]
);
meta = {
description = "Terminal-based manga reader and downloader with image support";
homepage = "https://github.com/josueBarretogit/manga-tui";
changelog = "https://github.com/josueBarretogit/manga-tui/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ isabelroses ];
mainProgram = "manga-tui";
};
}