mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 09:04:37 +03:00
fix: use warn instead of throw if projects
unspecified
This commit is contained in:
parent
2d9d7a7ecc
commit
2af5fb9212
12
src/lib.nix
12
src/lib.nix
@ -201,24 +201,20 @@
|
||||
{}
|
||||
flakifiedOutputsList;
|
||||
|
||||
errorFlakeOutputs = {
|
||||
errorFlakeOutputs = l.warn (missingProjectsError source) {
|
||||
apps =
|
||||
l.mapAttrs
|
||||
(system: pkgs: {
|
||||
detect-projects =
|
||||
dream2nixFor.${system}.flakeApps.detect-projects;
|
||||
|
||||
error = throw (missingProjectsError source);
|
||||
})
|
||||
allPkgs;
|
||||
};
|
||||
|
||||
finalOutputs = let
|
||||
givenProjects = args.projects or {};
|
||||
in
|
||||
finalOutputs =
|
||||
if
|
||||
(givenProjects == {} && autoProjects == false)
|
||||
|| (l.isPath givenProjects && ! l.pathExists givenProjects)
|
||||
(args ? projects && l.isPath args.projects && ! l.pathExists args.projects)
|
||||
|| (projects == {} && autoProjects == false)
|
||||
then errorFlakeOutputs
|
||||
else flakeOutputsBuilders;
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user