mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
ain: 1.4.1 -> 1.6.0
This commit is contained in:
parent
1333865d9e
commit
b301c11376
1 changed files with 14 additions and 11 deletions
|
@ -4,31 +4,34 @@
|
|||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "ain";
|
||||
version = "1.4.1";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jonaslu";
|
||||
repo = "ain";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-JEavBPnF3WW6oCZ1OC8g1dZev4qC7bi74/q2nvXK3mo=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-jZTdFA3ZNb0xIN7+ne5bz6jMpj4jqZ/JHxz2x83fBm8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-+72Y8SKvx7KBK5AIBWKlDqQYpHnZc9CNxCdo4yakPb0=";
|
||||
vendorHash = "sha256-VLn7JPYYFmQ/9c0zKHWJBqtxwCbWgsN4FHlXrQiKMj4=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-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";
|
||||
homepage = "https://github.com/jonaslu/ain";
|
||||
changelog = "https://github.com/jonaslu/ain/releases/tag/${src.rev}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
changelog = "https://github.com/jonaslu/ain/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ figsoda ];
|
||||
mainProgram = "ain";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue