gnome-builder: Fix build

This was forgotten during GNOME 3.36 update so the upstreamed patches were not removed.
Also needed to add libportal and could remove some old cruft.
This commit is contained in:
Jan Tojnar
2020-04-05 01:35:33 +02:00
parent 418628e162
commit ff3c6feea8
@@ -5,7 +5,6 @@
, docbook_xsl , docbook_xsl
, docbook_xml_dtd_43 , docbook_xml_dtd_43
, fetchurl , fetchurl
, fetchpatch
, flatpak , flatpak
, gnome3 , gnome3
, libgit2-glib , libgit2-glib
@@ -18,6 +17,7 @@
, jsonrpc-glib , jsonrpc-glib
, libdazzle , libdazzle
, libpeas , libpeas
, libportal
, libxml2 , libxml2
, meson , meson
, ninja , ninja
@@ -46,18 +46,6 @@ stdenv.mkDerivation rec {
sha256 = "G0nl6DVzb3k6cN2guFIe/XNhFNhKbaq5e8wz62VA0Qo="; sha256 = "G0nl6DVzb3k6cN2guFIe/XNhFNhKbaq5e8wz62VA0Qo=";
}; };
patches = [
# Fix build with Meson 0.52
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/c8b862b491cfbbb4f79b24d7cd90e4fb1f37cb9f.patch";
sha256 = "0n8kg7nnjqmbnyag1ps6dvrlqrxc94djjncqx10d6y7ijwdxf4w8";
})
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/da26dfbf78468f5ed724e022b300a07862a95833.patch";
sha256 = "0psa65bzjpjj7vc5rknv2w2dz3p50jjv10s6j2fd6lpw8j2800k4";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
appstream-glib appstream-glib
desktop-file-utils desktop-file-utils
@@ -65,7 +53,7 @@ stdenv.mkDerivation rec {
docbook_xml_dtd_43 docbook_xml_dtd_43
gobject-introspection gobject-introspection
gtk-doc gtk-doc
(meson.override ({ inherit stdenv; })) meson
ninja ninja
pkgconfig pkgconfig
python3 python3
@@ -80,6 +68,7 @@ stdenv.mkDerivation rec {
gnome3.glade gnome3.glade
libgit2-glib libgit2-glib
libpeas libpeas
libportal
vte vte
gspell gspell
gtk3 gtk3
@@ -109,8 +98,6 @@ stdenv.mkDerivation rec {
patchShebangs build-aux/meson/post_install.py patchShebangs build-aux/meson/post_install.py
''; '';
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
mesonFlags = [ mesonFlags = [
"-Dpython_libprefix=${python3.libPrefix}" "-Dpython_libprefix=${python3.libPrefix}"
"-Ddocs=true" "-Ddocs=true"