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

authored by Austin Horstman and committed by GitHub be49b9d4 23d3029c

+9 -3
+9 -3
pkgs/applications/editors/vim/plugins/default.nix
··· 33 34 nonGeneratedPlugins = 35 self: super: 36 - lib.mapAttrs (name: _: callPackage (./non-generated + "/${name}") { }) ( 37 - lib.filterAttrs (name: type: type == "directory") (builtins.readDir ./non-generated) 38 - ); 39 40 plugins = callPackage ./generated.nix { 41 inherit buildVimPlugin;
··· 33 34 nonGeneratedPlugins = 35 self: super: 36 + let 37 + root = ./non-generated; 38 + call = name: callPackage (root + "/${name}") { }; 39 + in 40 + lib.pipe root [ 41 + builtins.readDir 42 + (lib.filterAttrs (_: type: type == "directory")) 43 + (builtins.mapAttrs (name: _: call name)) 44 + ]; 45 46 plugins = callPackage ./generated.nix { 47 inherit buildVimPlugin;