sbomnix: 1.6.1 -> 1.7.0

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
This commit is contained in:
Henri Rosten 2024-11-18 10:42:54 +02:00 committed by Bjørn Forsman
parent a254cdb551
commit a113a85dfa

View file

@ -1,5 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, git
, grype , grype
, nix , nix
, nix-visualize , nix-visualize
@ -9,6 +10,7 @@
beautifulsoup4 beautifulsoup4
, colorlog , colorlog
, dfdiskcache , dfdiskcache
, filelock
, graphviz , graphviz
, numpy , numpy
, packageurl-python , packageurl-python
@ -26,14 +28,14 @@
python.pkgs.buildPythonApplication rec { python.pkgs.buildPythonApplication rec {
pname = "sbomnix"; pname = "sbomnix";
version = "1.6.1"; version = "1.7.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tiiuae"; owner = "tiiuae";
repo = "sbomnix"; repo = "sbomnix";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-kPjCK9NEs3D0qFsSSVX6MYGKbwqeij0svTfzz5JC4qM="; hash = "sha256-n5nK9fqgAC10jU9BcO+EEVrSD0YEr/hp6XDcTqVrvP8=";
# Remove documentation as it contains references to nix store # Remove documentation as it contains references to nix store
postFetch = '' postFetch = ''
@ -42,18 +44,16 @@ python.pkgs.buildPythonApplication rec {
''; '';
}; };
postInstall = '' makeWrapperArgs = [
wrapProgram $out/bin/sbomnix \ "--prefix PATH : ${lib.makeBinPath [
--prefix PATH : ${lib.makeBinPath [nix graphviz]} git
wrapProgram $out/bin/nixgraph \ nix
--prefix PATH : ${lib.makeBinPath [nix graphviz]} graphviz
wrapProgram $out/bin/vulnxscan \ nix-visualize
--prefix PATH : ${lib.makeBinPath [grype nix vulnix]} vulnix
wrapProgram $out/bin/nix_outdated \ grype
--prefix PATH : ${lib.makeBinPath [nix-visualize]} ]}"
wrapProgram $out/bin/provenance \ ];
--prefix PATH : ${lib.makeBinPath [nix]}
'';
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];
@ -62,6 +62,7 @@ python.pkgs.buildPythonApplication rec {
colorlog colorlog
dfdiskcache dfdiskcache
graphviz graphviz
filelock
numpy numpy
packageurl-python packageurl-python
packaging packaging