cargo-cyclonedx: init at 0.3.7
This commit is contained in:
parent
36c55f76ff
commit
2139320a9d
2 changed files with 54 additions and 0 deletions
51
pkgs/development/tools/rust/cargo-cyclonedx/default.nix
Normal file
51
pkgs/development/tools/rust/cargo-cyclonedx/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, openssl
|
||||
, Security
|
||||
, SystemConfiguration
|
||||
, CoreFoundation
|
||||
, curl
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-cyclonedx";
|
||||
version = "0.3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CycloneDX";
|
||||
repo = "cyclonedx-rust-cargo";
|
||||
rev = "${pname}-${version}";
|
||||
hash = "sha256-xr3YNjQp+XhIWIqJ1rPUyM9mbtWGExlFEj28/SB8vfE=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-NsBY+wb4IAlKOMh5BMvT734z//Wp/s0zimm04v8pqyc=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -14826,6 +14826,9 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
||||
};
|
||||
cargo-criterion = callPackage ../development/tools/rust/cargo-criterion { };
|
||||
cargo-cyclonedx = callPackage ../development/tools/rust/cargo-cyclonedx {
|
||||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration CoreFoundation;
|
||||
};
|
||||
cargo-deadlinks = callPackage ../development/tools/rust/cargo-deadlinks {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue