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