mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
htop: fix deprecation warnings (#2026)
Previous patch on deprecation warnings broke use of old options due to function call with too many arguments. This fixes the arguments so deprecation warnings are properly traced while preserving old configuration options.
This commit is contained in:
parent
b449cb77b1
commit
3d18912f5a
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ in {
|
||||||
warn' = warn
|
warn' = warn
|
||||||
"htop: programs.htop.${optionKey} is deprecated; please is programs.htop.settings.${settingsKey} instead";
|
"htop: programs.htop.${optionKey} is deprecated; please is programs.htop.settings.${settingsKey} instead";
|
||||||
in if !isNull optionValue then
|
in if !isNull optionValue then
|
||||||
warn' settingsKey optionKey optionValue
|
warn' optionValue
|
||||||
else if hasAttr settingsKey cfg.settings then
|
else if hasAttr settingsKey cfg.settings then
|
||||||
cfg.settings.${settingsKey}
|
cfg.settings.${settingsKey}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue