depot/third_party/nixpkgs/pkgs/by-name/cy/cyclonedx-cli/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

33 lines
864 B
Nix

{ lib
, buildDotnetModule
, fetchFromGitHub
}:
buildDotnetModule rec {
pname = "cyclonedx-cli";
version = "0.25.0";
src = fetchFromGitHub {
owner = "CycloneDX";
repo = "cyclonedx-cli";
rev = "refs/tags/v${version}";
hash = "sha256-kAMSdUMr/NhsbMBViFJQlzgUNnxWgi/CLb3CW9OpWFo=";
};
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";
};
}