Files
nixpkgs/pkgs/by-name/nc/ncgopher/package.nix
2026-01-29 23:19:29 +01:00

45 lines
846 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
ncurses6,
openssl,
sqlite,
perl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ncgopher";
version = "0.8.0";
src = fetchFromGitHub {
owner = "jansc";
repo = "ncgopher";
tag = "v${finalAttrs.version}";
hash = "sha256-O5lC1eeiwXeX3aF8kLl65jl0Jq0dIswQiFuROWVFeYc=";
};
cargoHash = "sha256-qCYx3RPp22YBFRwEoTttppDmyeg9J0I1QD5aK/OY7l8=";
nativeBuildInputs = [
pkg-config
perl
];
buildInputs = [
ncurses6
openssl
sqlite
];
meta = {
description = "Gopher and gemini client for the modern internet";
homepage = "https://github.com/jansc/ncgopher";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ jrrom ];
platforms = lib.platforms.linux;
mainProgram = "ncgopher";
};
})