biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / gopher / phetch / default.nix
blobed327dab740a7618bc19058872343f8ef9a6e6dd
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , installShellFiles
5 , rustPlatform
6 , pkg-config
7 , openssl
8 , scdoc
9 , Security
10 , which
13 rustPlatform.buildRustPackage rec {
14   pname = "phetch";
15   version = "1.2.0";
17   outputs = [ "out" "man" ];
19   src = fetchFromGitHub {
20     owner = "xvxx";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-J+ka7/B37WzVPPE2Krkd/TIiVwuKfI2QYWmT0JHgBGQ=";
24   };
26   cargoSha256 = "sha256-y3Y5PnZ51Zc3LmVTijUGnb0KaGm28sWOSYxjuM3A1Zk=";
28   nativeBuildInputs = [ installShellFiles pkg-config scdoc which ];
29   buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
31   postInstall = ''
32     make manual
33     installManPage doc/phetch.1
34   '';
36   doCheck = true;
38   meta = with lib; {
39     description = "A quick lil gopher client for your terminal, written in rust";
40     mainProgram = "phetch";
41     longDescription = ''
42       phetch is a terminal client designed to help you quickly navigate the gophersphere.
43       - <1MB executable for Linux, Mac, and NetBSD
44       - Technicolor design (based on GILD)
45       - No-nonsense keyboard navigation
46       - Supports Gopher searches, text and menu pages, and downloads
47       - Save your favorite Gopher sites with bookmarks
48       - Opt-in history tracking
49       - Secure Gopher support (TLS)
50       - Tor support
51     '';
52     changelog = "https://github.com/xvxx/phetch/releases/tag/v${version}";
53     homepage = "https://github.com/xvxx/phetch";
54     license = licenses.mit;
55     maintainers = with maintainers; [ felixalbrigtsen ];
56   };