{ 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.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"; }; }