about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/ain/default.nix
blob: 755777f3939c1032be716f2572dba29b62754b92 (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
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "ain";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "jonaslu";
    repo = "ain";
    rev = "v${version}";
    hash = "sha256-LjGiRLTQxJ83fFBYH7RzQjDG8ZzHT/y1I7nXTb4peAo=";
  };

  vendorHash = "sha256-eyB+0D0+4hHG4yKDj/m9QB+8YTyv+por8fTyu/WcZyg=";

  ldflags = [
    "-s"
    "-w"
    "-X=main.gitSha=${src.rev}"
  ];

  meta = with lib; {
    description = "A HTTP API client for the terminal";
    homepage = "https://github.com/jonaslu/ain";
    changelog = "https://github.com/jonaslu/ain/releases/tag/${src.rev}";
    license = licenses.mit;
    maintainers = with maintainers; [ figsoda ];
    mainProgram = "ain";
  };
}