mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 05:59:17 +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,
|
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";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue