diff --git a/nix/devshell.nix b/nix/devshell.nix index 0f51579..4464239 100644 --- a/nix/devshell.nix +++ b/nix/devshell.nix @@ -5,6 +5,7 @@ perSystem = { pkgs, inputs', + self', ... }: { devShells.default = let @@ -25,6 +26,10 @@ nix reuse ]) + ++ (with self'.packages; [ + vulnix + nix-visualize + ]) ++ (with pp; [ beautifulsoup4 colorlog diff --git a/nix/packages.nix b/nix/packages.nix index aef6206..cdbe5c2 100644 --- a/nix/packages.nix +++ b/nix/packages.nix @@ -9,17 +9,6 @@ }: let pp = pkgs.python3Packages; - # We use vulnix from 'https://github.com/henrirosten/vulnix' to get - # vulnix support for runtime-only scan ('-C' command-line option) - # which is currently not available in released version of vulnix. - # Pending https://github.com/nix-community/vulnix/pull/80 - vulnix = (import inputs.vulnix) { - inherit (inputs) nixpkgs; # required but not used as we provide pkgs - inherit pkgs lib; - }; - - nix-visualize = (import inputs.nix-visualize) {inherit pkgs;}; - pyrate-limiter = pp.buildPythonPackage rec { version = "2.10.0"; pname = "pyrate-limiter"; @@ -55,6 +44,17 @@ packages = rec { default = sbomnix; + # We use vulnix from 'https://github.com/henrirosten/vulnix' to get + # vulnix support for runtime-only scan ('-C' command-line option) + # which is currently not available in released version of vulnix. + # Pending https://github.com/nix-community/vulnix/pull/80 + vulnix = (import inputs.vulnix) { + inherit (inputs) nixpkgs; # required but not used as we provide pkgs + inherit pkgs lib; + }; + + nix-visualize = (import inputs.nix-visualize) {inherit pkgs;}; + sbomnix = pp.buildPythonPackage rec { pname = "sbomnix"; version = pkgs.lib.removeSuffix "\n" (builtins.readFile ../VERSION);