qt: deprecate kde6
Give users a heads up that option is being removed. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
f671e772d3
commit
1e759786e5
3 changed files with 31 additions and 2 deletions
|
|
@ -215,6 +215,7 @@ in
|
|||
"lxqt"
|
||||
"qtct"
|
||||
"kde"
|
||||
"kde6"
|
||||
]) (lib.types.submodule { options = newOption; })
|
||||
);
|
||||
default = null;
|
||||
|
|
@ -290,11 +291,22 @@ in
|
|||
|
||||
config =
|
||||
let
|
||||
deprecateKde6 =
|
||||
name: optionPath:
|
||||
if name == "kde6" then
|
||||
lib.warn ''
|
||||
The ${optionPath} value "kde6" has been deprecated and renamed to "kde".
|
||||
Please update your configuration:
|
||||
${optionPath} = "kde";
|
||||
'' "kde"
|
||||
else
|
||||
name;
|
||||
|
||||
platformTheme =
|
||||
if (builtins.isString cfg.platformTheme) then
|
||||
{
|
||||
option = "qt.platformTheme";
|
||||
name = cfg.platformTheme;
|
||||
name = deprecateKde6 cfg.platformTheme "qt.platformTheme";
|
||||
package = null;
|
||||
}
|
||||
else if cfg.platformTheme == null then
|
||||
|
|
@ -306,7 +318,7 @@ in
|
|||
else
|
||||
{
|
||||
option = "qt.platformTheme.name";
|
||||
name = cfg.platformTheme.name;
|
||||
name = deprecateKde6 cfg.platformTheme.name "qt.platformTheme.name";
|
||||
package = cfg.platformTheme.package;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue