2022-11-27 09:42:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
, SystemConfiguration
|
|
|
|
, CoreFoundation
|
|
|
|
, curl
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-cyclonedx";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.3.8";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CycloneDX";
|
|
|
|
repo = "cyclonedx-rust-cargo";
|
|
|
|
rev = "${pname}-${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-6XW8aCXepbVnTubbM4sfRIC87uYSCEbuj+jJcPayEEU=";
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
cargoHash = "sha256-BG/vfa5L6Iibfon3A5TP8/K8jbJsWqc+axdvIXc7GmM=";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
SystemConfiguration
|
|
|
|
CoreFoundation
|
|
|
|
curl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Creates CycloneDX Software Bill of Materials (SBOM) from Rust (Cargo) projects";
|
|
|
|
longDescription = ''
|
|
|
|
The CycloneDX module for Rust (Cargo) creates a valid CycloneDX Software
|
|
|
|
Bill-of-Material (SBOM) containing an aggregate of all project
|
|
|
|
dependencies. CycloneDX is a lightweight SBOM specification that is
|
|
|
|
easily created, human and machine readable, and simple to parse.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/CycloneDX/cyclonedx-rust-cargo";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nikstur ];
|
|
|
|
};
|
|
|
|
}
|