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:
parent
ba93ec2161
commit
4363ce78b5
1 changed files with 7 additions and 7 deletions
|
@ -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 { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue