about summary refs log tree commit diff
diff options
context:
space:
mode:
authorh7x4 <h7x4@nani.wtf>2024-06-15 02:01:51 +0200
committerGitHub <noreply@github.com>2024-06-15 02:01:51 +0200
commit49aefbf4e0d510d15114c6e7091fef8644c7680e (patch)
tree536448d38769389238aa464d403d751f6237cece
parent6b63821eea6478dea2df4db242e82af63c8bc80f (diff)
parent069a42726adccb2a72ba7900aa9a4525bfd85e21 (diff)
Merge pull request #316883 from Guanran928/hn-text
hn-text: init at 0.1.4
-rw-r--r--pkgs/by-name/hn/hn-text/package.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/hn/hn-text/package.nix b/pkgs/by-name/hn/hn-text/package.nix
new file mode 100644
index 0000000000000..e07f31a342308
--- /dev/null
+++ b/pkgs/by-name/hn/hn-text/package.nix
@@ -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 ];
+  };
+}