2019-09-02 18:44:11 +02:00
|
|
|
{ stdenv
|
2018-09-13 09:27:08 +02:00
|
|
|
, ctags
|
2019-03-07 16:48:05 +01:00
|
|
|
, appstream-glib
|
2018-07-31 02:34:30 +02:00
|
|
|
, desktop-file-utils
|
|
|
|
, docbook_xsl
|
2018-07-31 08:05:11 +02:00
|
|
|
, docbook_xml_dtd_43
|
2018-07-31 02:34:30 +02:00
|
|
|
, fetchurl
|
|
|
|
, flatpak
|
|
|
|
, gnome3
|
2018-12-14 16:05:44 +01:00
|
|
|
, libgit2-glib
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection
|
2020-05-15 17:29:00 +02:00
|
|
|
, glade
|
2018-07-31 02:34:30 +02:00
|
|
|
, gspell
|
|
|
|
, gtk-doc
|
|
|
|
, gtk3
|
2018-09-13 05:18:50 +02:00
|
|
|
, gtksourceview4
|
2018-07-31 02:34:30 +02:00
|
|
|
, json-glib
|
|
|
|
, jsonrpc-glib
|
|
|
|
, libdazzle
|
2019-03-23 05:50:12 +01:00
|
|
|
, libpeas
|
2020-04-05 01:35:33 +02:00
|
|
|
, libportal
|
2018-07-31 02:34:30 +02:00
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, ostree
|
|
|
|
, pcre
|
2019-09-02 18:44:11 +02:00
|
|
|
, pcre2
|
2018-07-31 02:34:30 +02:00
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, sysprof
|
|
|
|
, template-glib
|
|
|
|
, vala
|
2018-12-26 00:15:46 +01:00
|
|
|
, vte
|
2018-07-31 02:34:30 +02:00
|
|
|
, webkitgtk
|
|
|
|
, wrapGAppsHook
|
2019-03-07 16:48:05 +01:00
|
|
|
, dbus
|
|
|
|
, xvfb_run
|
2019-09-02 18:44:11 +02:00
|
|
|
, glib
|
2018-07-29 05:48:43 +02:00
|
|
|
}:
|
2019-03-07 16:48:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-07-29 05:48:43 +02:00
|
|
|
pname = "gnome-builder";
|
2020-02-10 20:43:40 +01:00
|
|
|
version = "3.36.0";
|
2018-07-29 05:48:43 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-06-02 22:44:52 +02:00
|
|
|
sha256 = "02ni81jyncycgfwslvaav0a62wzx3r9bi86xf0x7jvvk6plfaj8v";
|
2018-07-29 05:48:43 +02:00
|
|
|
};
|
|
|
|
|
2018-07-31 00:04:31 +02:00
|
|
|
nativeBuildInputs = [
|
2019-03-07 16:48:05 +01:00
|
|
|
appstream-glib
|
2018-07-31 02:34:30 +02:00
|
|
|
desktop-file-utils
|
|
|
|
docbook_xsl
|
2018-07-31 08:05:11 +02:00
|
|
|
docbook_xml_dtd_43
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-07-31 02:34:30 +02:00
|
|
|
gtk-doc
|
2020-04-05 01:35:33 +02:00
|
|
|
meson
|
2018-07-29 05:48:43 +02:00
|
|
|
ninja
|
|
|
|
pkgconfig
|
2018-09-03 23:55:43 +02:00
|
|
|
python3
|
2018-07-31 02:34:30 +02:00
|
|
|
python3.pkgs.wrapPython
|
|
|
|
wrapGAppsHook
|
2018-07-31 00:04:31 +02:00
|
|
|
];
|
2018-07-29 05:48:43 +02:00
|
|
|
|
2018-07-31 00:04:31 +02:00
|
|
|
buildInputs = [
|
2018-09-13 09:27:08 +02:00
|
|
|
ctags
|
2018-07-31 00:04:31 +02:00
|
|
|
flatpak
|
2018-07-29 05:48:43 +02:00
|
|
|
gnome3.devhelp
|
2020-05-15 17:29:00 +02:00
|
|
|
glade
|
2018-12-14 16:05:44 +01:00
|
|
|
libgit2-glib
|
2019-03-23 05:50:12 +01:00
|
|
|
libpeas
|
2020-04-05 01:35:33 +02:00
|
|
|
libportal
|
2018-12-26 00:15:46 +01:00
|
|
|
vte
|
2018-07-29 05:48:43 +02:00
|
|
|
gspell
|
|
|
|
gtk3
|
2018-09-13 05:18:50 +02:00
|
|
|
gtksourceview4
|
2018-07-29 05:48:43 +02:00
|
|
|
json-glib
|
|
|
|
jsonrpc-glib
|
|
|
|
libdazzle
|
|
|
|
libxml2
|
2018-07-31 00:04:31 +02:00
|
|
|
ostree
|
2018-07-29 05:48:43 +02:00
|
|
|
pcre
|
2019-09-02 18:44:11 +02:00
|
|
|
pcre2
|
2018-07-31 00:04:31 +02:00
|
|
|
python3
|
2018-07-29 05:48:43 +02:00
|
|
|
sysprof
|
|
|
|
template-glib
|
|
|
|
vala
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
2019-03-07 16:48:05 +01:00
|
|
|
checkInputs = [
|
|
|
|
dbus
|
|
|
|
xvfb_run
|
|
|
|
];
|
|
|
|
|
2018-08-01 02:04:03 +02:00
|
|
|
outputs = [ "out" "devdoc" ];
|
2018-07-31 06:43:12 +02:00
|
|
|
|
2018-07-29 05:48:43 +02:00
|
|
|
prePatch = ''
|
2018-07-31 00:04:31 +02:00
|
|
|
patchShebangs build-aux/meson/post_install.py
|
2018-07-29 05:48:43 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dpython_libprefix=${python3.libPrefix}"
|
2019-03-07 16:48:05 +01:00
|
|
|
"-Ddocs=true"
|
2018-08-01 06:51:11 +02:00
|
|
|
|
|
|
|
# Making the build system correctly detect clang header and library paths
|
|
|
|
# is difficult. Somebody should look into fixing this.
|
2019-03-07 16:48:05 +01:00
|
|
|
"-Dplugin_clang=false"
|
|
|
|
|
|
|
|
# Do not try to check if appstream images exist
|
|
|
|
"-Dnetwork_tests=false"
|
2018-07-29 05:48:43 +02:00
|
|
|
];
|
|
|
|
|
2018-08-01 06:51:11 +02:00
|
|
|
# Some tests fail due to being unable to find the Vte typelib, and I don't
|
|
|
|
# understand why. Somebody should look into fixing this.
|
2019-03-07 16:48:05 +01:00
|
|
|
doCheck = true;
|
2018-08-01 06:51:11 +02:00
|
|
|
|
2019-03-07 16:48:05 +01:00
|
|
|
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
|
2018-07-31 08:05:11 +02:00
|
|
|
'';
|
|
|
|
|
2018-07-31 02:34:30 +02:00
|
|
|
pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ];
|
2018-07-29 05:48:43 +02:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Ensure that all plugins get their interpreter paths fixed up.
|
|
|
|
find $out/lib -name \*.py -type f -print0 | while read -d "" f; do
|
|
|
|
chmod a+x "$f"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = gnome3.updateScript { packageName = pname; };
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An IDE for writing GNOME-based software";
|
2018-08-01 07:46:47 +02:00
|
|
|
longDescription = ''
|
|
|
|
Global search, auto-completion, source code map, documentation
|
|
|
|
reference, and other features expected in an IDE, but with a focus
|
|
|
|
on streamlining GNOME-based development projects.
|
|
|
|
|
|
|
|
This package does not pull in the dependencies needed for every
|
|
|
|
plugin. If you find that a plugin you wish to use doesn't work, we
|
|
|
|
currently recommend running gnome-builder inside a nix-shell with
|
|
|
|
appropriate dependencies loaded.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Builder";
|
2018-07-31 00:04:31 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-07-29 05:48:43 +02:00
|
|
|
platforms = platforms.linux;
|
2018-08-01 22:12:54 +02:00
|
|
|
};
|
2018-07-29 05:48:43 +02:00
|
|
|
}
|