2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cyclonedx-gomod";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.5.0";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CycloneDX";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-whAHZDUQBJaYu+OZiqcYzWxOru1GXDQ4FMDCj+ngCDs=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-FpsZonGJSzbAsnM00qq/qiTJLUN4q08dR+6rhTKvX0I=";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
# Tests require network access and cyclonedx executable
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cyclonedx-gomod";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|