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