depot/third_party/nixpkgs/pkgs/by-name/hn/hn-text/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
734 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule rec {
pname = "hn-text";
version = "0.1.4";
src = fetchFromGitHub {
owner = "piqoni";
repo = "hn-text";
rev = "v${version}";
hash = "sha256-YoPdYuNlWrLITyd2XeCOeGy70Ews1rvtOQzYZAQTI+Y=";
};
vendorHash = "sha256-lhghteKspXK1WSZ3dVHaTgx2BRx9S7yGNbvRYZKeA+s=";
ldflags = [
"-s"
"-w"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Fast, easy-to-use and distraction-free Hacker News terminal client";
homepage = "https://github.com/piqoni/hn-text";
license = lib.licenses.mit;
mainProgram = "hn-text";
maintainers = with lib.maintainers; [ Guanran928 ];
};
}