1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-11 11:39:49 +01:00

qt: reduce test closure

This commit is contained in:
Robert Helgesson 2024-12-04 10:24:09 +01:00
parent 8f4f57f9a6
commit 6c3a7a0b72
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
4 changed files with 73 additions and 61 deletions

View file

@ -1,5 +1,4 @@
{ {
config = {
qt.enable = true; qt.enable = true;
nmt.script = '' nmt.script = ''
@ -8,5 +7,4 @@
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QML2_IMPORT_PATH' 'QML2_IMPORT_PATH'
''; '';
};
} }

View file

@ -1,5 +1,4 @@
{ {
config = {
qt = { qt = {
enable = true; enable = true;
# Check if still backwards compatible # Check if still backwards compatible
@ -7,7 +6,12 @@
style.name = "adwaita"; style.name = "adwaita";
}; };
test.stubs.qgnomeplatform = { }; test.stubs = {
qgnomeplatform = { };
qgnomeplatform-qt6 = { };
adwaita-qt = { };
adwaita-qt6 = { };
};
nmt.script = '' nmt.script = ''
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
@ -23,5 +27,4 @@
"The option `qt.platformTheme` has been renamed to `qt.platformTheme.name`." "The option `qt.platformTheme` has been renamed to `qt.platformTheme.name`."
"The value `gnome` for option `qt.platformTheme` is deprecated. Use `adwaita` instead." "The value `gnome` for option `qt.platformTheme` is deprecated. Use `adwaita` instead."
]; ];
};
} }

View file

@ -1,11 +1,25 @@
{ {
config = { imports = [ ../../i18n/input-method/fcitx5-stubs.nix ];
qt = { qt = {
enable = true; enable = true;
platformTheme.name = "gtk"; platformTheme.name = "gtk";
}; };
i18n.inputMethod.enabled = "fcitx5"; i18n.inputMethod.enabled = "fcitx5";
nixpkgs.overlays = [
(final: prev: {
libsForQt5 = prev.libsForQt5.overrideScope (qt5final: qt5prev: {
qtstyleplugins = prev.mkStubPackage { outPath = null; };
});
qt6Packages = prev.qt6Packages.overrideScope (qt6final: qt6prev: {
qt6gtk2 = prev.mkStubPackage { outPath = null; };
});
})
];
nmt.script = '' nmt.script = ''
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_QPA_PLATFORMTHEME="gtk2"' 'QT_QPA_PLATFORMTHEME="gtk2"'
@ -14,5 +28,4 @@
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QML2_IMPORT_PATH' 'QML2_IMPORT_PATH'
''; '';
};
} }

View file

@ -1,5 +1,4 @@
{ {
config = {
qt = { qt = {
enable = true; enable = true;
platformTheme.name = "gtk3"; platformTheme.name = "gtk3";
@ -13,5 +12,4 @@
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QML2_IMPORT_PATH' 'QML2_IMPORT_PATH'
''; '';
};
} }