9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
32 lines
692 B
Nix
32 lines
692 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ain";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jonaslu";
|
|
repo = "ain";
|
|
rev = "v${version}";
|
|
hash = "sha256-QBtnVtTGONbYToGhZ0L4CZ3o2hViEN1l94ZKJHVMd1w=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|