2023-08-30 14:41:10 +00:00
|
|
|
{ lib, clan, nixpkgs, ... }:
|
2023-08-09 10:10:27 +00:00
|
|
|
{
|
|
|
|
findNixFiles = folder:
|
|
|
|
lib.mapAttrs'
|
|
|
|
(name: type:
|
|
|
|
if
|
|
|
|
type == "directory"
|
|
|
|
then
|
|
|
|
lib.nameValuePair name "${folder}/${name}"
|
|
|
|
else
|
|
|
|
lib.nameValuePair (lib.removeSuffix ".nix" name) "${folder}/${name}"
|
|
|
|
)
|
|
|
|
(builtins.readDir folder);
|
|
|
|
|
2023-08-09 14:05:16 +00:00
|
|
|
jsonschema = import ./jsonschema { inherit lib; };
|
2023-08-29 13:00:03 +00:00
|
|
|
|
2023-08-30 14:41:10 +00:00
|
|
|
buildClan = import ./build-clan { inherit lib clan nixpkgs; };
|
2023-08-09 10:10:27 +00:00
|
|
|
}
|