mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
scdoc,
|
|
which,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "phetch";
|
|
version = "1.2.0";
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xvxx";
|
|
repo = pname;
|
|
tag = "v${version}";
|
|
hash = "sha256-J+ka7/B37WzVPPE2Krkd/TIiVwuKfI2QYWmT0JHgBGQ=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-2lbQAM3gdytXsoMFzKwLWA1hvQIJf1vBdMRpYx/VLVg=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
pkg-config
|
|
scdoc
|
|
which
|
|
];
|
|
buildInputs = [ openssl ];
|
|
|
|
postInstall = ''
|
|
make manual
|
|
installManPage doc/phetch.1
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
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${version}";
|
|
homepage = "https://github.com/xvxx/phetch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ felixalbrigtsen ];
|
|
};
|
|
}
|