manga-tui: init at 0.2.0

This commit is contained in:
isabel 2024-08-14 21:17:43 +01:00
parent 53b0c8af91
commit 6d5f08d642
No known key found for this signature in database
GPG Key ID: 5A87C993E20D89A1
2 changed files with 3255 additions and 0 deletions

3200
pkgs/by-name/ma/manga-tui/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
sqlite,
stdenv,
darwin,
}:
let
version = "0.2.0";
in
rustPlatform.buildRustPackage {
pname = "manga-tui";
inherit version;
src = fetchFromGitHub {
owner = "josueBarretogit";
repo = "manga-tui";
rev = "v${version}";
hash = "sha256-rGdncPEHbjA86RB0NjWgmci3Dz2c92o3mgC3eCt8Nxs=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"ratatui-image-1.0.5" = "sha256-bUPKCK3AKO5fnv7a8PApZTI0LPBShNBsvgyunLMdIqg=";
};
};
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
openssl
sqlite
]
++ lib.optionals stdenv.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";
};
}