cyclonedx-gomod: migrate to finalAttrs
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "cyclonedx-gomod";
|
||||
version = "1.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CycloneDX";
|
||||
repo = "cyclonedx-gomod";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-x0/Sei1uY8dDTYCFOgI2e6pe/5BjXLgt8YKKvSMBG4I=";
|
||||
};
|
||||
|
||||
@@ -28,9 +28,9 @@ buildGoModule rec {
|
||||
meta = {
|
||||
description = "Tool to create CycloneDX Software Bill of Materials (SBOM) from Go modules";
|
||||
homepage = "https://github.com/CycloneDX/cyclonedx-gomod";
|
||||
changelog = "https://github.com/CycloneDX/cyclonedx-gomod/releases/tag/v${version}";
|
||||
changelog = "https://github.com/CycloneDX/cyclonedx-gomod/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "cyclonedx-gomod";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user