0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

theLoungePlugins: remove with statements

This commit is contained in:
Philip Taron 2024-08-16 14:20:31 -07:00
parent ba93ec2161
commit 4363ce78b5
No known key found for this signature in database

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 { };