Skip to content

Commit

Permalink
Add class: imports "type checking"
Browse files Browse the repository at this point in the history
Initially this had some feature checking with lib.functionArgs, but
I don't think this is useful. The _class attribute is not supported
by long-unsupported Nixpkgs (<23.05) anyway, so let's keep it simple.
  • Loading branch information
roberth committed May 16, 2024
1 parent e5d10a2 commit 411e5ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions extras/flakeModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
);

Expand Down
1 change: 1 addition & 0 deletions modules/perSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ in
specialArgs = {
inherit system;
};
class = "perSystem";
}).config;
};

Expand Down

0 comments on commit 411e5ab

Please sign in to comment.