2020-03-23 21:21:05 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2021-08-29 02:41:56 +01:00
|
|
|
, cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2021-08-29 02:41:56 +01:00
|
|
|
, adwaita-qt
|
2020-03-23 21:21:05 +00:00
|
|
|
, glib
|
2021-08-29 02:41:56 +01:00
|
|
|
, gtk3
|
2020-03-23 21:21:05 +00:00
|
|
|
, qtbase
|
|
|
|
, pantheon
|
|
|
|
, substituteAll
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2018-09-25 00:07:51 +01:00
|
|
|
|
2019-08-04 08:39:20 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qgnomeplatform";
|
2022-01-21 01:34:02 +00:00
|
|
|
version = "0.8.4";
|
2018-09-25 00:07:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FedoraQt";
|
|
|
|
repo = "QGnomePlatform";
|
|
|
|
rev = version;
|
2022-01-21 01:34:02 +00:00
|
|
|
sha256 = "sha256-DaIBtWmce+58OOhqFG5802c3EprBAtDXhjiSPIImoOM=";
|
2018-09-25 00:07:51 +01: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-25 00:07:51 +01:00
|
|
|
nativeBuildInputs = [
|
2021-08-29 02:41:56 +01:00
|
|
|
cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-09-25 00:07:51 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-08-29 02:41:56 +01:00
|
|
|
adwaita-qt
|
2020-03-23 21:21:05 +00:00
|
|
|
glib
|
2018-09-25 00:07:51 +01:00
|
|
|
gtk3
|
|
|
|
qtbase
|
|
|
|
];
|
|
|
|
|
2021-08-29 02:41:56 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DGLIB_SCHEMAS_DIR=${glib.getSchemaPath gsettings-desktop-schemas}"
|
|
|
|
"-DQT_PLUGINS_DIR=${placeholder "out"}/${qtbase.qtPluginPrefix}"
|
|
|
|
];
|
2018-09-25 00:07:51 +01:00
|
|
|
|
2019-12-22 23:19:30 +00:00
|
|
|
passthru = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 23:19:30 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-04 08:39:20 +01:00
|
|
|
meta = with lib; {
|
2018-09-25 00:07:51 +01:00
|
|
|
description = "QPlatformTheme for a better Qt application inclusion in GNOME";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/FedoraQt/QGnomePlatform";
|
2018-09-25 00:07:51 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-07 14:23:50 +01:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
|
2018-09-25 00:07:51 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|