From 7e6cfc4fa984dd46e08d97c9988bf8b2399e82e0 Mon Sep 17 00:00:00 2001 From: Sebastian Estrella <2049686+sestrella@users.noreply.github.com> Date: Sun, 12 Nov 2023 20:55:05 -0500 Subject: [PATCH] Refactor findPackage --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 19d127a..e8f1c33 100644 --- a/flake.nix +++ b/flake.nix @@ -56,11 +56,11 @@ lib.warnIf (!hasPlugin) "Skipping \"${name}\" plugin" hasPlugin); - findPackage = plugin: version: plugins.${plugin} { + findPackages = builtins.mapAttrs (plugin: version: plugins.${plugin} { inherit system version; - }; + }); in - builtins.mapAttrs findPackage + findPackages (builtins.listToAttrs (filterPlugins (parseVersions