Unverified Commit 4363ce78 authored by Philip Taron's avatar Philip Taron
Browse files

theLoungePlugins: remove with statements

parent ba93ec21
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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 { };