forked from tiiuae/sbomnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
56 lines (52 loc) · 1.48 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
{
pkgs ? import <nixpkgs> {},
pythonPackages ? pkgs.python3Packages,
}:
pkgs.mkShell rec {
name = "sbomnix-dev-shell";
nixupdate = import ./scripts/nixupdate/nixupdate.nix { pkgs=pkgs; };
nix_visualize = import ./scripts/nixupdate/nix-visualize.nix { pkgs=pkgs; };
requests-ratelimiter = import ./scripts/repology/requests-ratelimiter.nix { pkgs=pkgs; };
repology_cli = import ./scripts/repology/repology_cli.nix { pkgs=pkgs; };
vulnix = import ./scripts/vulnxscan/vulnix.nix { nixpkgs=pkgs.path; pkgs=pkgs; };
vulnxscan = import ./scripts/vulnxscan/vulnxscan.nix { pkgs=pkgs; };
buildInputs = [
nixupdate
nix_visualize
requests-ratelimiter
repology_cli
vulnix
vulnxscan
pkgs.coreutils
pkgs.curl
pkgs.gnugrep
pkgs.gnused
pkgs.graphviz
pkgs.grype
pkgs.gzip
pkgs.nix
pkgs.reuse
pythonPackages.beautifulsoup4
pythonPackages.colorlog
pythonPackages.graphviz
pythonPackages.numpy
pythonPackages.packageurl-python
pythonPackages.packaging
pythonPackages.pandas
pythonPackages.requests
pythonPackages.requests-cache
pythonPackages.tabulate
pythonPackages.wheel
pythonPackages.venvShellHook
];
venvDir = "venv";
postShellHook = ''
# https://github.com/NixOS/nix/issues/1009:
export TMPDIR="/tmp"
# Enter python development environment
make install-dev
'';
}