nixpkgs/pkgs/tools/security/cyclonedx-gomod/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
781 B
Nix
Raw Normal View History

2022-12-11 12:49:56 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "cyclonedx-gomod";
2023-04-19 09:20:17 +02:00
version = "1.4.0";
2022-12-11 12:49:56 +01:00
src = fetchFromGitHub {
owner = "CycloneDX";
repo = pname;
rev = "v${version}";
2023-04-19 09:20:17 +02:00
hash = "sha256-GCRLOfrL1jFExGb5DbJa8s7RQv8Wn81TGktShZqeC54=";
2022-12-11 12:49:56 +01:00
};
2023-04-19 09:20:17 +02:00
vendorHash = "sha256-gFewqutvkFc/CVpBD3ORGcfiG5UNh5tQ1ElHpM3g5+I=";
2022-12-11 12:49:56 +01: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 ];
};
}