govulncheck: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-04-14 01:08:42 +02:00
parent 18406b9964
commit df9fea8789
+6 -6
View File
@@ -5,21 +5,21 @@
replaceVars,
}:
buildGoLatestModule rec {
buildGoLatestModule (finalAttrs: {
pname = "govulncheck";
version = "1.2.0";
src = fetchFromGitHub {
owner = "golang";
repo = "vuln";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-15DTxzlK7mkUt7KCwsV5+E5dPopCwFylI0fmVB0LDEo=";
};
patches = [
# patch in version information
(replaceVars ./version.patch {
inherit version;
inherit (finalAttrs) version;
})
];
@@ -40,7 +40,7 @@ buildGoLatestModule rec {
meta = {
homepage = "https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck";
downloadPage = "https://github.com/golang/vuln";
changelog = "https://github.com/golang/vuln/releases/tag/v${version}";
changelog = "https://github.com/golang/vuln/releases/tag/${finalAttrs.src.tag}";
description = "Database client and tools for the Go vulnerability database, also known as vuln";
mainProgram = "govulncheck";
longDescription = ''
@@ -64,10 +64,10 @@ buildGoLatestModule rec {
example, a dependency with a Windows-specific vulnerability will not be
reported for a Linux build.
'';
license = with lib.licenses; [ bsd3 ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
jk
SuperSandro2000
];
};
}
})