summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/gnome-builder
diff options
context:
space:
mode:
authorTor Hedin Brønner <torhedinbronner@gmail.com>2019-03-07 16:48:05 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-04-05 12:13:31 +0200
commitd206f597b6c87e24bfae30ab5e14e2ee7e0da5cf (patch)
tree2003788f884b91c49d1f22e8921b272336ad1301 /pkgs/applications/editors/gnome-builder
parentd2c37618f5f447ebcc7303ea0c0ef90cc0c25ba1 (diff)
gnome-builder: 3.30.3 -> 3.32.0
Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'pkgs/applications/editors/gnome-builder')
-rw-r--r--pkgs/applications/editors/gnome-builder/default.nix45
1 files changed, 31 insertions, 14 deletions
diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix
index 38606bc4c296..63568bef6f74 100644
--- a/pkgs/applications/editors/gnome-builder/default.nix
+++ b/pkgs/applications/editors/gnome-builder/default.nix
@@ -1,11 +1,11 @@
-{ stdenv
+{ gcc8Stdenv
, ctags
+, appstream-glib
, desktop-file-utils
, docbook_xsl
, docbook_xml_dtd_43
, fetchurl
, flatpak
-, glibcLocales
, gnome3
, libgit2-glib
, gobject-introspection
@@ -31,28 +31,33 @@
, vte
, webkitgtk
, wrapGAppsHook
+, dbus
+, xvfb_run
}:
+
let
- version = "3.30.3";
+ # Does not build with GCC 7
+ # https://gitlab.gnome.org/GNOME/gnome-builder/issues/868
+ stdenv = gcc8Stdenv;
+in
+stdenv.mkDerivation rec {
pname = "gnome-builder";
-in stdenv.mkDerivation {
- name = "${pname}-${version}";
+ version = "3.32.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
- sha256 = "11h6apjyah91djf77m8xkl5rvdz7mwpp3bjc4yzzs9lm3pag764r";
+ sha256 = "00l7sshpndk995aw98mjmsc3mxhxzynlp7il551iwwjjdbc70qp4";
};
nativeBuildInputs = [
- #appstream-glib # tests fail if these tools are available
+ appstream-glib
desktop-file-utils
docbook_xsl
docbook_xml_dtd_43
- glibcLocales # for Meson's gtkdochelper
gobject-introspection
gtk-doc
hicolor-icon-theme
- meson
+ (meson.override ({ inherit stdenv; }))
ninja
pkgconfig
python3
@@ -64,6 +69,7 @@ in stdenv.mkDerivation {
ctags
flatpak
gnome3.devhelp
+ gnome3.glade
libgit2-glib
libpeas
vte
@@ -83,6 +89,11 @@ in stdenv.mkDerivation {
webkitgtk
];
+ checkInputs = [
+ dbus
+ xvfb_run
+ ];
+
outputs = [ "out" "devdoc" ];
prePatch = ''
@@ -91,19 +102,25 @@ in stdenv.mkDerivation {
mesonFlags = [
"-Dpython_libprefix=${python3.libPrefix}"
- "-Dwith_docs=true"
+ "-Ddocs=true"
# Making the build system correctly detect clang header and library paths
# is difficult. Somebody should look into fixing this.
- "-Dwith_clang=false"
+ "-Dplugin_clang=false"
+
+ # Do not try to check if appstream images exist
+ "-Dnetwork_tests=false"
];
# Some tests fail due to being unable to find the Vte typelib, and I don't
# understand why. Somebody should look into fixing this.
- doCheck = false;
+ doCheck = true;
- preInstall = ''
- export LC_ALL="en_US.utf-8"
+ checkPhase = ''
+ export NO_AT_BRIDGE=1
+ xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
+ --config-file=${dbus.daemon}/share/dbus-1/session.conf \
+ meson test --print-errorlogs
'';
pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ];