tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
phetch: init at 1.2.0
Felix Albrigtsen
3 years ago
07006967
be57fca5
+60
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
gopher
phetch
default.nix
top-level
all-packages.nix
+56
pkgs/applications/networking/gopher/phetch/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, installShellFiles
5
5
+
, rustPlatform
6
6
+
, pkg-config
7
7
+
, openssl
8
8
+
, scdoc
9
9
+
, Security
10
10
+
, which
11
11
+
}:
12
12
+
13
13
+
rustPlatform.buildRustPackage rec {
14
14
+
pname = "phetch";
15
15
+
version = "1.2.0";
16
16
+
17
17
+
outputs = [ "out" "man" ];
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "xvxx";
21
21
+
repo = pname;
22
22
+
rev = "refs/tags/v${version}";
23
23
+
hash = "sha256-J+ka7/B37WzVPPE2Krkd/TIiVwuKfI2QYWmT0JHgBGQ=";
24
24
+
};
25
25
+
26
26
+
cargoSha256 = "sha256-y3Y5PnZ51Zc3LmVTijUGnb0KaGm28sWOSYxjuM3A1Zk=";
27
27
+
28
28
+
nativeBuildInputs = [ installShellFiles pkg-config scdoc which ];
29
29
+
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
30
30
+
31
31
+
postInstall = ''
32
32
+
make manual
33
33
+
installManPage doc/phetch.1
34
34
+
'';
35
35
+
36
36
+
doCheck = true;
37
37
+
38
38
+
meta = with lib; {
39
39
+
description = "A quick lil gopher client for your terminal, written in rust";
40
40
+
longDescription = ''
41
41
+
phetch is a terminal client designed to help you quickly navigate the gophersphere.
42
42
+
- <1MB executable for Linux, Mac, and NetBSD
43
43
+
- Technicolor design (based on GILD)
44
44
+
- No-nonsense keyboard navigation
45
45
+
- Supports Gopher searches, text and menu pages, and downloads
46
46
+
- Save your favorite Gopher sites with bookmarks
47
47
+
- Opt-in history tracking
48
48
+
- Secure Gopher support (TLS)
49
49
+
- Tor support
50
50
+
'';
51
51
+
changelog = "https://github.com/xvxx/phetch/releases/tag/v${version}";
52
52
+
homepage = "https://github.com/xvxx/phetch";
53
53
+
license = licenses.mit;
54
54
+
maintainers = with maintainers; [ felixalbrigtsen ];
55
55
+
};
56
56
+
}
+4
pkgs/top-level/all-packages.nix
···
22414
22414
22415
22415
pe-parse = callPackage ../development/libraries/pe-parse { };
22416
22416
22417
22417
+
phetch = callPackage ../applications/networking/gopher/phetch {
22418
22418
+
inherit (darwin.apple_sdk.frameworks) Security;
22419
22419
+
};
22420
22420
+
22417
22421
inherit (callPackage ../development/libraries/physfs {
22418
22422
inherit (darwin.apple_sdk.frameworks) Foundation;
22419
22423
})