theLoungePlugins: remove with statements

This commit is contained in:
Philip Taron
2024-08-18 06:32:24 -07:00
parent ba93ec2161
commit 4363ce78b5
+7 -7
View File
@@ -13189,14 +13189,14 @@ with pkgs;
thelounge = callPackage ../applications/networking/irc/thelounge { };
theLoungePlugins = with lib; let
pkgs = filterAttrs (name: _: hasPrefix "thelounge-" name) nodePackages;
getPackagesWithPrefix = prefix: mapAttrs' (name: pkg: nameValuePair (removePrefix ("thelounge-" + prefix + "-") name) pkg)
(filterAttrs (name: _: hasPrefix ("thelounge-" + prefix + "-") name) pkgs);
theLoungePlugins = let
pkgs = lib.filterAttrs (name: _: lib.hasPrefix "thelounge-" name) nodePackages;
getPackagesWithPrefix = prefix: lib.mapAttrs' (name: pkg: lib.nameValuePair (lib.removePrefix ("thelounge-" + prefix + "-") name) pkg)
(lib.filterAttrs (name: _: lib.hasPrefix ("thelounge-" + prefix + "-") name) pkgs);
in
recurseIntoAttrs {
plugins = recurseIntoAttrs (getPackagesWithPrefix "plugin");
themes = recurseIntoAttrs (getPackagesWithPrefix "theme");
lib.recurseIntoAttrs {
plugins = lib.recurseIntoAttrs (getPackagesWithPrefix "plugin");
themes = lib.recurseIntoAttrs (getPackagesWithPrefix "theme");
};
theme-sh = callPackage ../tools/misc/theme-sh { };