ain: 1.4.1 -> 1.6.0

This commit is contained in:
emaryn 2025-04-15 04:41:15 +08:00
parent 1333865d9e
commit b301c11376

View file

@ -4,31 +4,34 @@
fetchFromGitHub, fetchFromGitHub,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "ain"; pname = "ain";
version = "1.4.1"; version = "1.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jonaslu"; owner = "jonaslu";
repo = "ain"; repo = "ain";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-JEavBPnF3WW6oCZ1OC8g1dZev4qC7bi74/q2nvXK3mo="; hash = "sha256-jZTdFA3ZNb0xIN7+ne5bz6jMpj4jqZ/JHxz2x83fBm8=";
}; };
vendorHash = "sha256-+72Y8SKvx7KBK5AIBWKlDqQYpHnZc9CNxCdo4yakPb0="; vendorHash = "sha256-VLn7JPYYFmQ/9c0zKHWJBqtxwCbWgsN4FHlXrQiKMj4=";
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"
"-X=main.gitSha=${src.rev}" "-X=main.gitSha=${finalAttrs.src.tag}"
]; ];
meta = with lib; { # need network
doCheck = false;
meta = {
description = "HTTP API client for the terminal"; description = "HTTP API client for the terminal";
homepage = "https://github.com/jonaslu/ain"; homepage = "https://github.com/jonaslu/ain";
changelog = "https://github.com/jonaslu/ain/releases/tag/${src.rev}"; changelog = "https://github.com/jonaslu/ain/releases/tag/v${finalAttrs.version}";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ figsoda ]; maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "ain"; mainProgram = "ain";
}; };
} })