nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.5 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 installShellFiles, 5 rustPlatform, 6 pkg-config, 7 openssl, 8 scdoc, 9 which, 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "phetch"; 14 version = "1.2.0"; 15 16 outputs = [ 17 "out" 18 "man" 19 ]; 20 21 src = fetchFromGitHub { 22 owner = "xvxx"; 23 repo = "phetch"; 24 tag = "v${version}"; 25 hash = "sha256-J+ka7/B37WzVPPE2Krkd/TIiVwuKfI2QYWmT0JHgBGQ="; 26 }; 27 28 cargoHash = "sha256-2lbQAM3gdytXsoMFzKwLWA1hvQIJf1vBdMRpYx/VLVg="; 29 30 nativeBuildInputs = [ 31 installShellFiles 32 pkg-config 33 scdoc 34 which 35 ]; 36 buildInputs = [ openssl ]; 37 38 postInstall = '' 39 make manual 40 installManPage doc/phetch.1 41 ''; 42 43 doCheck = true; 44 45 meta = { 46 description = "Quick lil gopher client for your terminal, written in rust"; 47 mainProgram = "phetch"; 48 longDescription = '' 49 phetch is a terminal client designed to help you quickly navigate the gophersphere. 50 - <1MB executable for Linux, Mac, and NetBSD 51 - Technicolor design (based on GILD) 52 - No-nonsense keyboard navigation 53 - Supports Gopher searches, text and menu pages, and downloads 54 - Save your favorite Gopher sites with bookmarks 55 - Opt-in history tracking 56 - Secure Gopher support (TLS) 57 - Tor support 58 ''; 59 changelog = "https://github.com/xvxx/phetch/releases/tag/v${version}"; 60 homepage = "https://github.com/xvxx/phetch"; 61 license = lib.licenses.mit; 62 maintainers = with lib.maintainers; [ felixalbrigtsen ]; 63 }; 64}