mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
9c5affce9f
Among other things, this updates the known valid SPDX IDs and hence make the `validate` command work with more SBOMs. Changes: https://github.com/CycloneDX/cyclonedx-cli/releases/tag/v0.25.1
33 lines
864 B
Nix
33 lines
864 B
Nix
{ lib
|
|
, buildDotnetModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "cyclonedx-cli";
|
|
version = "0.25.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = "cyclonedx-cli";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-9G9g4bfH6EGSTZQlaiLsRjnryl+mQ3uNXdBUBVcKwlg=";
|
|
};
|
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
preFixup = ''
|
|
cd $out/bin
|
|
find . ! -name 'cyclonedx' -type f -exec rm -f {} +
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions";
|
|
homepage = "https://github.com/CycloneDX/cyclonedx-cli";
|
|
changelog = "https://github.com/CycloneDX/cyclonedx-cli/releases/tag/v${version}";
|
|
maintainers = with maintainers; [ thillux ];
|
|
license = licenses.asl20;
|
|
platforms = with platforms; (linux ++ darwin);
|
|
mainProgram = "cyclonedx";
|
|
};
|
|
}
|