2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, qtbase
|
|
|
|
, qmake
|
|
|
|
, qtx11extras
|
|
|
|
, pantheon
|
|
|
|
, substituteAll
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qgnomeplatform";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FedoraQt";
|
|
|
|
repo = "QGnomePlatform";
|
|
|
|
rev = version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "1mwqg2zk0sfjq54vz2jjahbgi5sxw8rb71h6mgg459wp99mhlqi0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "QPlatformTheme for a better Qt application inclusion in GNOME";
|
|
|
|
homepage = "https://github.com/FedoraQt/QGnomePlatform";
|
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|