vimPlugins: simplify auto-non-generated using lib.pipe (#393152)

This commit is contained in:
Austin Horstman
2025-03-25 15:30:01 -05:00
committed by GitHub
@@ -33,9 +33,15 @@ let
nonGeneratedPlugins =
self: super:
lib.mapAttrs (name: _: callPackage (./non-generated + "/${name}") { }) (
lib.filterAttrs (name: type: type == "directory") (builtins.readDir ./non-generated)
);
let
root = ./non-generated;
call = name: callPackage (root + "/${name}") { };
in
lib.pipe root [
builtins.readDir
(lib.filterAttrs (_: type: type == "directory"))
(builtins.mapAttrs (name: _: call name))
];
plugins = callPackage ./generated.nix {
inherit buildVimPlugin;