Skip to content

Commit

Permalink
Update flake lock
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Dec 1, 2023
1 parent 53f666e commit f9c5d7c
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 45 deletions.
75 changes: 52 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@
treefmt-nix.follows = "treefmt-nix";
};
};
ci-public = {
url = "github:tiiuae/ci-public";
flake = false;
csvdiff = {
url = "github:tiiuae/ci-public?dir=csvdiff";
inputs = {
# reduce duplicate inputs
nixpkgs.follows = "nixpkgs";
flake-root.follows = "flake-root";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
};
};
sbomnix = {
url = "github:tiiuae/sbomnix";
Expand All @@ -43,7 +49,6 @@
flake-root.follows = "flake-root";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
nix-fast-build.follows = "nix-fast-build";
};
};
};
Expand Down
4 changes: 2 additions & 2 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
perSystem = {
pkgs,
inputs',
self',
...
}: {
devShells.default = pkgs.mkShell {
Expand Down Expand Up @@ -34,9 +33,10 @@
)
])
++ [
self'.packages.csvdiff
# bring in vulnxscan from sbomnix
inputs'.sbomnix.packages.default
# csvdiff
inputs'.csvdiff.packages.default
]
++ [
inputs'.nix-fast-build.packages.default
Expand Down
28 changes: 12 additions & 16 deletions nix/packages.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
{inputs, ...}: {
_: {
perSystem = {
inputs',
pkgs,
Expand All @@ -13,8 +13,6 @@
packages = rec {
default = ghafscan;

csvdiff = (import "${inputs.ci-public}/csvdiff") {inherit pkgs;};

ghafscan = pp.buildPythonPackage {
pname = "ghafscan";
version = pkgs.lib.removeSuffix "\n" (builtins.readFile ../VERSION);
Expand All @@ -24,19 +22,17 @@

pythonImportsCheck = ["ghafscan"];

propagatedBuildInputs =
[
pkgs.reuse
csvdiff
# we need vulnxscan from sbombnix
inputs'.sbomnix.packages.default
]
++ (with pp; [
colorlog
gitpython
pandas
tabulate
]);
propagatedBuildInputs = with pp; [
colorlog
gitpython
pandas
tabulate
];

postInstall = ''
wrapProgram $out/bin/ghafscan \
--prefix PATH : ${lib.makeBinPath [inputs'.sbomnix.packages.default inputs'.csvdiff.packages.default]}
'';
};
};
};
Expand Down

0 comments on commit f9c5d7c

Please sign in to comment.