2020-03-23 21:21:05 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2020-07-29 16:33:39 +00:00
|
|
|
, nix-update-script
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-03-23 21:21:05 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, qtbase
|
|
|
|
, qmake
|
|
|
|
, qtx11extras
|
|
|
|
, pantheon
|
|
|
|
, substituteAll
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2018-09-24 23:07:51 +00:00
|
|
|
|
2019-08-04 07:39:20 +00:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qgnomeplatform";
|
2020-05-19 23:00:37 +00:00
|
|
|
version = "0.6.1";
|
2018-09-24 23:07:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FedoraQt";
|
|
|
|
repo = "QGnomePlatform";
|
|
|
|
rev = version;
|
2020-05-19 23:00:37 +00:00
|
|
|
sha256 = "1mwqg2zk0sfjq54vz2jjahbgi5sxw8rb71h6mgg459wp99mhlqi0";
|
2018-09-24 23:07:51 +00:00
|
|
|
};
|
|
|
|
|
2020-03-23 21:21:05 +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;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-09-24 23:07:51 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-09-24 23:07:51 +00:00
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-03-23 21:21:05 +00:00
|
|
|
glib
|
2018-09-24 23:07:51 +00:00
|
|
|
gtk3
|
|
|
|
qtbase
|
2019-11-20 10:48:30 +00:00
|
|
|
qtx11extras
|
2018-09-24 23:07:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Fix plugin dir
|
2019-11-20 10:48:30 +00:00
|
|
|
substituteInPlace decoration/decoration.pro \
|
|
|
|
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
|
|
|
|
substituteInPlace theme/theme.pro \
|
2018-09-24 23:07:51 +00:00
|
|
|
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
|
|
|
|
'';
|
|
|
|
|
2019-12-22 23:19:30 +00:00
|
|
|
passthru = {
|
2020-07-29 16:33:39 +00:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 23:19:30 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-04 07:39:20 +00:00
|
|
|
meta = with lib; {
|
2018-09-24 23:07:51 +00:00
|
|
|
description = "QPlatformTheme for a better Qt application inclusion in GNOME";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/FedoraQt/QGnomePlatform";
|
2018-09-24 23:07:51 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|