forked from mirrors/nixpkgs
Merge pull request #224993 from henrirosten/add_sbomnix
This commit is contained in:
commit
f2c4689bbe
|
@ -6222,6 +6222,12 @@
|
|||
githubId = 982322;
|
||||
name = "Henrik Olsson";
|
||||
};
|
||||
henrirosten = {
|
||||
email = "henri.rosten@unikie.com";
|
||||
github = "henrirosten";
|
||||
githubId = 49935860;
|
||||
name = "Henri Rosten";
|
||||
};
|
||||
henrytill = {
|
||||
email = "henrytill@gmail.com";
|
||||
github = "henrytill";
|
||||
|
|
55
pkgs/tools/security/sbomnix/default.nix
Normal file
55
pkgs/tools/security/sbomnix/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, coreutils
|
||||
, curl
|
||||
, gnugrep
|
||||
, gnused
|
||||
, gzip
|
||||
, nix
|
||||
, python
|
||||
# python libs
|
||||
, colorlog
|
||||
, graphviz
|
||||
, numpy
|
||||
, packageurl-python
|
||||
, pandas
|
||||
, requests
|
||||
, reuse
|
||||
, tabulate
|
||||
}:
|
||||
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
pname = "sbomnix";
|
||||
version = "1.4.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tiiuae";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-RxDFxVGivVBw2uhtzf231Q2HHTBFKSqGrknr2Es/ygM=";
|
||||
};
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--prefix PATH : ${lib.makeBinPath [ coreutils curl gnugrep gnused gzip graphviz nix ]}"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
colorlog
|
||||
graphviz
|
||||
numpy
|
||||
packageurl-python
|
||||
pandas
|
||||
requests
|
||||
reuse
|
||||
tabulate
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sbomnix" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate SBOMs for nix targets";
|
||||
homepage = "https://github.com/tiiuae/sbomnix";
|
||||
license = with licenses; [ asl20 bsd3 cc-by-30 ];
|
||||
maintainers = with maintainers; [ henrirosten jk ];
|
||||
};
|
||||
}
|
|
@ -18988,6 +18988,8 @@ with pkgs;
|
|||
|
||||
sawjap = callPackage ../development/tools/java/sawjap { };
|
||||
|
||||
sbomnix = python3.pkgs.callPackage ../tools/security/sbomnix { };
|
||||
|
||||
sd-local = callPackage ../development/tools/sd-local { };
|
||||
|
||||
seer = libsForQt5.callPackage ../development/tools/misc/seer { };
|
||||
|
|
Loading…
Reference in a new issue