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
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
dotnetCorePackages,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "sbom-tool";
|
|
version = "4.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "microsoft";
|
|
repo = "sbom-tool";
|
|
tag = "v${version}";
|
|
hash = "sha256-zv83bbdkVB2Pejyp0S7WaReO7HIjvOk4/2cyMFqNERM=";
|
|
};
|
|
|
|
projectFile = "src/Microsoft.Sbom.Tool/Microsoft.Sbom.Tool.csproj";
|
|
nugetDeps = ./deps.json;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
|
|
|
dotnetBuildFlags = [
|
|
"-p:MinVerVersionOverride=${version}"
|
|
];
|
|
|
|
dotnetInstallFlags = [
|
|
"--framework"
|
|
"net8.0"
|
|
];
|
|
|
|
executables = [ "Microsoft.Sbom.Tool" ];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = [ "--version" ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Highly scalable and enterprise ready tool to create SPDX 2.2 and SPDX 3.0 compatible SBOMs for any variety of artifacts";
|
|
homepage = "https://github.com/microsoft/sbom-tool";
|
|
changelog = "https://github.com/microsoft/sbom-tool/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
mainProgram = "Microsoft.Sbom.Tool";
|
|
};
|
|
}
|