clan-core/lib/default.nix
DavHau 7262208a4c
All checks were successful
build / test (pull_request) Successful in 26s
clanLib.jsonschema: move tests from pkgs/clan-cli
2023-08-09 16:05:33 +02:00

17 lines
374 B
Nix

{ lib, ... }:
{
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; };
}