Skip to content

Commit

Permalink
feat: Replace lib.flatten with concatenation
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Nov 10, 2023
1 parent 1216029 commit 818e534
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 3 additions & 5 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
{
perSystem = {
pkgs,
lib,
inputs',
...
}: {
Expand All @@ -14,7 +13,7 @@
pkgs.mkShell rec {
name = "sbomnix-dev-shell";

buildInputs = lib.flatten [
buildInputs =
(with pkgs; [
coreutils
curl
Expand All @@ -26,7 +25,7 @@
nix
reuse
])
(with pp; [
++ (with pp; [
beautifulsoup4
colorlog
graphviz
Expand All @@ -40,9 +39,8 @@
venvShellHook
wheel
])
++ [inputs'.nix-fast-build.packages.default];

[inputs'.nix-fast-build.packages.default]
];
venvDir = "venv";
postShellHook = ''
source $PWD/scripts/env.sh
Expand Down
9 changes: 4 additions & 5 deletions nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@

src = lib.cleanSource ../.;

propagatedBuildInputs = lib.flatten [
propagatedBuildInputs =
[
pyrate-limiter
requests-ratelimiter
pkgs.reuse
]
[pkgs.reuse]
(with pp; [
++ (with pp; [
beautifulsoup4
colorlog
graphviz
Expand All @@ -78,8 +78,7 @@
requests
requests-cache
tabulate
])
];
]);

pythonImportsCheck = ["sbomnix"];

Expand Down

0 comments on commit 818e534

Please sign in to comment.