1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #320108 from NixOS/backport-316883-to-release-24.05

[Backport release-24.05] hn-text: init at 0.1.4
This commit is contained in:
Weijia Wang 2024-06-17 04:45:45 +02:00 committed by GitHub
commit 10a9d8c728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,35 @@
{
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 ];
};
}