blob: 7afdc95c4a2ed64203bc6aee7e23d26d12b9c95d (
plain)
1
2
3
4
5
6
7
8
9
|
self: let
inherit (builtins) readDir;
inherit (self.inputs.nixpkgs.lib) filterAttrs nameValuePair mapAttrs' hasSuffix removeSuffix;
in
mapAttrs'
(n: v: nameValuePair "cynerd-${removeSuffix ".nix" n}" (./. + "/${n}"))
(filterAttrs
(n: v: v == "regular" && hasSuffix ".nix" n && n != "default.nix")
(readDir ./.))
|