mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-28 00:19:31 +00:00
go-critic: use finalAttrs
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
parent
51af7d609d
commit
7f20d5e29a
@ -7,14 +7,14 @@
|
||||
go-critic,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "go-critic";
|
||||
version = "0.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "go-critic";
|
||||
repo = "go-critic";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-0AOhq7OhSHub4I6XXL018hg6i2ERkIbZCrO9osNjvHw=";
|
||||
};
|
||||
|
||||
@ -27,7 +27,7 @@ buildGoModule rec {
|
||||
allowGoReference = true;
|
||||
|
||||
ldflags = [
|
||||
"-X main.Version=${version}"
|
||||
"-X main.Version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
@ -41,9 +41,9 @@ buildGoModule rec {
|
||||
meta = {
|
||||
description = "Most opinionated Go source code linter for code audit";
|
||||
homepage = "https://go-critic.com/";
|
||||
changelog = "https://github.com/go-critic/go-critic/releases/tag/${src.rev}";
|
||||
changelog = "https://github.com/go-critic/go-critic/releases/tag/${finalAttrs.src.rev}";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "gocritic";
|
||||
maintainers = with lib.maintainers; [ katexochen ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user