1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Merge pull request #154 from hercules-ci/class

Add class: imports "type checking"
This commit is contained in:
Robert Hensing 2024-05-16 15:16:44 +02:00 committed by GitHub
commit 8dc45382d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -16,6 +16,7 @@ let
_file = "${toString moduleLocation}#flakeModules.${k}";
key = "${toString moduleLocation}#flakeModules.${k}";
imports = [ v ];
_class = "flake";
});
description = ''
flake-parts modules for use by other flakes.

View file

@ -120,6 +120,7 @@ let
inputs = args.inputs or /* legacy, warned above */ self.inputs;
} // specialArgs;
modules = [ ./all-modules.nix (lib.setDefaultModuleLocation errorLocation module) ];
class = "flake";
}
);

View file

@ -126,6 +126,7 @@ in
specialArgs = {
inherit system;
};
class = "perSystem";
}).config;
};