build-bazel-package: added rm of extra local folders for toolchain configuration...
[NixPkgs.git] / pkgs / tools / security / cyclonedx-gomod / default.nix
blob0f0ffed94e84deecc0e387aab7b665129f3780c3
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "cyclonedx-gomod";
9   version = "1.8.0";
11   src = fetchFromGitHub {
12     owner = "CycloneDX";
13     repo = "cyclonedx-gomod";
14     tag = "v${version}";
15     hash = "sha256-s5kzyQPf29RZPnPtgFf4IVHnOtVZOtGSQqy1BNVVykQ=";
16   };
18   vendorHash = "sha256-Sz2NCznyD0tMuho9kr+U35I8bS/WK276nPdt83k1zfU=";
20   ldflags = [
21     "-w"
22     "-s"
23   ];
25   # Tests require network access and cyclonedx executable
26   doCheck = false;
28   meta = with lib; {
29     description = "Tool to create CycloneDX Software Bill of Materials (SBOM) from Go modules";
30     homepage = "https://github.com/CycloneDX/cyclonedx-gomod";
31     changelog = "https://github.com/CycloneDX/cyclonedx-gomod/releases/tag/v${version}";
32     license = licenses.asl20;
33     maintainers = with maintainers; [ fab ];
34     mainProgram = "cyclonedx-gomod";
35   };