nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.3 KiB
Nix
Raw Normal View History

{ mkDerivation
, lib
, fetchFromGitHub
, nix-update-script
, cmake
, pkg-config
, adwaita-qt
, glib
, gtk3
, 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
};
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 = [
cmake
pkg-config
2018-09-25 00:07:51 +01:00
];
buildInputs = [
adwaita-qt
glib
2018-09-25 00:07:51 +01:00
gtk3
qtbase
];
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 = {
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";
homepage = "https://github.com/FedoraQt/QGnomePlatform";
2018-09-25 00:07:51 +01:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
2018-09-25 00:07:51 +01:00
platforms = platforms.linux;
};
}