This is a great refactor of the select functionality in the flake class. This now uses the same parser as the nix code, but runs it in python for nice stacktraces. Also we now have a maybe selector which can be used by prepending the selector with a ? Tests have been expanded to make sure the code is more stable and easier to understand
22 lines
450 B
Nix
22 lines
450 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
self,
|
|
...
|
|
}:
|
|
rec {
|
|
# TODO: automatically generate this from the directory conventions
|
|
imports = [
|
|
./build-clan/flake-module.nix
|
|
./introspection/flake-module.nix
|
|
./inventory/flake-module.nix
|
|
./jsonschema/flake-module.nix
|
|
];
|
|
flake.clanLib = import ./default.nix {
|
|
inherit lib inputs self;
|
|
inherit (inputs) nixpkgs nix-darwin;
|
|
};
|
|
# TODO: remove this legacy alias
|
|
flake.lib = flake.clanLib;
|
|
}
|