about summary refs log tree commit diff
path: root/pkgs/by-name/hn/hn-text/package.nix
blob: e07f31a342308e5c77181e6f69affea1cd68c830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 ];
  };
}