Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.1 KiB
Nix

{
lib,
buildDotnetModule,
fetchFromGitHub,
dotnetCorePackages,
}:
buildDotnetModule rec {
pname = "cyclonedx-cli";
version = "0.27.2";
src = fetchFromGitHub {
owner = "CycloneDX";
repo = "cyclonedx-cli";
tag = "v${version}";
hash = "sha256-QU/MaT8iIf/9VpOb2mixOfOtG/J+sE7S0mT6BKYQnlI=";
};
dotnet-sdk = dotnetCorePackages.sdk_8_0;
nugetDeps = ./deps.json;
preFixup = ''
cd $out/bin
find . ! -name 'cyclonedx' -type f -exec rm -f {} +
'';
postPatch = ''
substituteInPlace src/cyclonedx/cyclonedx.csproj tests/cyclonedx.tests/cyclonedx.tests.csproj \
--replace-fail 'net6.0' 'net8.0'
'';
meta = {
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 lib.maintainers; [ thillux ];
teams = [ lib.teams.cyberus ];
license = lib.licenses.asl20;
platforms = with lib.platforms; (linux ++ darwin);
mainProgram = "cyclonedx";
};
}