clan-core/lib/default.nix
Jörg Thalheim 72768573db
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 3s
drop non-existent clan modules
2023-08-29 22:30:33 +02:00

19 lines
444 B
Nix

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