Merge pull request #154943 from winterqt/thelounge-plugins-recurse-into-attrs

theLoungePlugins: recurseIntoAttrs
This commit is contained in:
Ivv 2022-01-24 19:09:15 +01:00 committed by GitHub
commit 1ad624e08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10189,9 +10189,9 @@ with pkgs;
getPackagesWithPrefix = prefix: mapAttrs' (name: pkg: nameValuePair (removePrefix ("thelounge-" + prefix + "-") name) pkg)
(filterAttrs (name: _: hasPrefix ("thelounge-" + prefix + "-") name) pkgs);
in
{
plugins = getPackagesWithPrefix "plugin";
themes = getPackagesWithPrefix "theme";
recurseIntoAttrs {
plugins = recurseIntoAttrs (getPackagesWithPrefix "plugin");
themes = recurseIntoAttrs (getPackagesWithPrefix "theme");
};
thefuck = python3Packages.callPackage ../tools/misc/thefuck { };