qgnomeplatform: hardcode gsettings schemas

Fixes #81866
This commit is contained in:
worldofpeace
2020-04-01 07:35:48 +02:00
committed by Jan Tojnar
parent 7d9e3877e1
commit 0ea686647f
2 changed files with 46 additions and 1 deletions
@@ -1,4 +1,16 @@
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, gtk3, qtbase, qmake, qtx11extras, pantheon }:
{ mkDerivation
, lib
, fetchFromGitHub
, pkgconfig
, gtk3
, glib
, qtbase
, qmake
, qtx11extras
, pantheon
, substituteAll
, gsettings-desktop-schemas
}:
mkDerivation rec {
pname = "qgnomeplatform";
@@ -11,12 +23,21 @@ mkDerivation rec {
sha256 = "0fb1mzs6sx76bl7f0z2xhc0jq6y1c55jrw1v3na8577is6g5ji0a";
};
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 = [
pkgconfig
qmake
];
buildInputs = [
glib
gtk3
qtbase
qtx11extras