mirror of
https://github.com/nix-community/home-manager
synced 2024-11-17 16:49:45 +01:00
rofi: skip override if there are no plugins (#3885)
Avoid needless calls to `override` (also allows using `pkgs.rofi-unwrapped` with no plugins).
This commit is contained in:
parent
2dcb61d396
commit
cd5723734a
1 changed files with 2 additions and 2 deletions
|
@ -264,8 +264,8 @@ in {
|
||||||
|
|
||||||
programs.rofi.finalPackage = let
|
programs.rofi.finalPackage = let
|
||||||
rofiWithPlugins = cfg.package.override
|
rofiWithPlugins = cfg.package.override
|
||||||
(old: rec { plugins = (old.plugins or [ ]) ++ cfg.plugins; });
|
(old: { plugins = (old.plugins or [ ]) ++ cfg.plugins; });
|
||||||
in if builtins.hasAttr "override" cfg.package then
|
in if builtins.hasAttr "override" cfg.package && cfg.plugins != [ ] then
|
||||||
rofiWithPlugins
|
rofiWithPlugins
|
||||||
else
|
else
|
||||||
cfg.package;
|
cfg.package;
|
||||||
|
|
Loading…
Reference in a new issue