Skip to content

Commit

Permalink
style: format default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 28, 2024
1 parent 0e1f659 commit 61889c3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ let
buildInputs = mkInput "buildInputs" (if includeBuildSystem then buildSystemPkgs else [ ]);
propagatedBuildInputs = mkInput "propagatedBuildInputs" (
let
availableGroups = {main.dependencies = allRawDeps;} // pyProject.tool.poetry.group or { };
in lib.flatten (map (g: getDeps availableGroups.${g}.dependencies or {}) groups)
availableGroups = { main.dependencies = allRawDeps; } // pyProject.tool.poetry.group or { };
in
lib.flatten (map (g: getDeps availableGroups.${g}.dependencies or { }) groups)
);
nativeBuildInputs = mkInput "nativeBuildInputs" [ ];
checkInputs = mkInput "checkInputs" checkInputs';
Expand Down Expand Up @@ -331,10 +332,11 @@ lib.makeScope pkgs.newScope (self: {

allEditablePackageSources = (getEditableDeps (pyProject.tool.poetry."dev-dependencies" or { }))
// (
let
deps = pyProject.tool.poetry."dependencies" or { };
availableGroups = {main.dependencies = deps;} // pyProject.tool.poetry.group or { };
in builtins.foldl' (acc: g: acc // getEditableDeps availableGroups.${g}.dependencies or {}) { } groups
let
deps = pyProject.tool.poetry."dependencies" or { };
availableGroups = { main.dependencies = deps; } // pyProject.tool.poetry.group or { };
in
builtins.foldl' (acc: g: acc // getEditableDeps availableGroups.${g}.dependencies or { }) { } groups
)
// editablePackageSources;

Expand Down

0 comments on commit 61889c3

Please sign in to comment.