Unverified Commit 175667e8 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #191715 from felixalbrigtsen/init-phetch

parents 17bbb993 07006967
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5005,6 +5005,13 @@
    keys = [{ fingerprint = "7391 BF2D A2C3 B2C9 BE25  ACA9 C7A7 4616 F302 5DF4"; }];
    matrix = "@felipeqq2:pub.solar";
  };
  felixalbrigtsen = {
    email = "felixalbrigtsen@gmail.com";
    github = "felixalbrigtsen";
    githubId = 64613093;
    name = "Felix Albrigtsen";
    matrix = "@felixalb:pvv.ntnu.no";
  };
  felixscheinost = {
    name = "Felix Scheinost";
    email = "felix.scheinost@posteo.de";
+56 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, rustPlatform
, pkg-config
, openssl
, scdoc
, Security
, which
}:

rustPlatform.buildRustPackage rec {
  pname = "phetch";
  version = "1.2.0";

  outputs = [ "out" "man" ];

  src = fetchFromGitHub {
    owner = "xvxx";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-J+ka7/B37WzVPPE2Krkd/TIiVwuKfI2QYWmT0JHgBGQ=";
  };

  cargoSha256 = "sha256-y3Y5PnZ51Zc3LmVTijUGnb0KaGm28sWOSYxjuM3A1Zk=";

  nativeBuildInputs = [ installShellFiles pkg-config scdoc which ];
  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];

  postInstall = ''
    make manual
    installManPage doc/phetch.1
  '';

  doCheck = true;

  meta = with lib; {
    description = "A quick lil gopher client for your terminal, written in rust";
    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${version}";
    homepage = "https://github.com/xvxx/phetch";
    license = licenses.mit;
    maintainers = with maintainers; [ felixalbrigtsen ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -23034,6 +23034,10 @@ with pkgs;
  pe-parse = callPackage ../development/libraries/pe-parse { };
  phetch = callPackage ../applications/networking/gopher/phetch {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  inherit (callPackage ../development/libraries/physfs {
    inherit (darwin.apple_sdk.frameworks) Foundation;
  })