diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix b/nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix new file mode 100644 index 000000000000..f739c1bc275e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix @@ -0,0 +1,68 @@ +{ mkDerivation +, lib +, fetchFromGitHub +, nix-update-script +, pkg-config +, gtk3 +, glib +, qtbase +, qmake +, qtx11extras +, pantheon +, substituteAll +, gsettings-desktop-schemas +}: + +mkDerivation rec { + pname = "qgnomeplatform"; + version = "0.6.1"; + + src = fetchFromGitHub { + owner = "FedoraQt"; + repo = "QGnomePlatform"; + rev = version; + sha256 = "1mwqg2zk0sfjq54vz2jjahbgi5sxw8rb71h6mgg459wp99mhlqi0"; + }; + + patches = [ + # Hardcode GSettings schema path to avoid crashes from missing schemas + (substituteAll { + src = ./hardcode-gsettings.patch; + gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas; + }) + ]; + + nativeBuildInputs = [ + pkg-config + qmake + ]; + + buildInputs = [ + glib + gtk3 + qtbase + qtx11extras + ]; + + postPatch = '' + # Fix plugin dir + substituteInPlace decoration/decoration.pro \ + --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" + substituteInPlace theme/theme.pro \ + --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" + ''; + + passthru = { + updateScript = nix-update-script { + attrPath = pname; + }; + }; + + meta = with lib; { + description = "QPlatformTheme for a better Qt application inclusion in GNOME"; + homepage = "https://github.com/FedoraQt/QGnomePlatform"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ worldofpeace ]; + platforms = platforms.linux; + }; +} |