56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
}
|