14 , gsettings-desktop-schemas
18 stdenv.mkDerivation rec {
19 pname = "qgnomeplatform";
22 src = fetchFromGitHub {
24 repo = "QGnomePlatform";
26 sha256 = "sha256-DaIBtWmce+58OOhqFG5802c3EprBAtDXhjiSPIImoOM=";
30 # Hardcode GSettings schema path to avoid crashes from missing schemas
32 src = ./hardcode-gsettings.patch;
33 gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas;
36 # Backport cursor fix for Qt6 apps
37 # Ajusted from https://github.com/FedoraQt/QGnomePlatform/pull/138
38 ./qt6-cursor-fix.patch
51 ] ++ lib.optionals (!useQt6) [
53 ] ++ lib.optionals useQt6 [
57 # Qt setup hook complains about missing `wrapQtAppsHook` otherwise.
58 dontWrapQtApps = true;
61 "-DGLIB_SCHEMAS_DIR=${glib.getSchemaPath gsettings-desktop-schemas}"
62 "-DQT_PLUGINS_DIR=${placeholder "out"}/${qtbase.qtPluginPrefix}"
63 ] ++ lib.optionals useQt6 [
68 updateScript = nix-update-script { };
72 description = "QPlatformTheme for a better Qt application inclusion in GNOME";
73 homepage = "https://github.com/FedoraQt/QGnomePlatform";
74 license = licenses.lgpl21Plus;
76 platforms = platforms.linux;