clan-core/lib/default.nix
Jörg Thalheim 1d496c6363
All checks were successful
checks-impure / test (pull_request) Successful in 5s
checks / test (pull_request) Successful in 1m20s
buildClan: also import clanCore module
2023-08-30 16:41:50 +02:00

19 lines
455 B
Nix

{ lib, clan, nixpkgs, ... }:
{
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);
jsonschema = import ./jsonschema { inherit lib; };
buildClan = import ./build-clan { inherit lib clan nixpkgs; };
}