3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/gnome-builder/default.nix

158 lines
3.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
2018-09-13 08:27:08 +01:00
, ctags
, appstream-glib
, desktop-file-utils
, docbook_xsl
, docbook_xml_dtd_43
, fetchurl
, flatpak
, gnome3
2018-12-14 15:05:44 +00:00
, libgit2-glib
, gobject-introspection
2020-05-15 16:29:00 +01:00
, glade
, gspell
, gtk-doc
, gtk3
2018-09-13 04:18:50 +01:00
, gtksourceview4
, json-glib
, jsonrpc-glib
, libdazzle
2019-03-23 04:50:12 +00:00
, libpeas
, libportal
, libxml2
, meson
, ninja
, ostree
, pcre
, pcre2
, pkg-config
, python3
, sysprof
, template-glib
, vala
, vte
, webkitgtk
, wrapGAppsHook
, dbus
, xvfb_run
2018-07-29 04:48:43 +01:00
}:
stdenv.mkDerivation rec {
2018-07-29 04:48:43 +01:00
pname = "gnome-builder";
2021-02-04 10:02:20 +00:00
version = "3.38.2";
2018-07-29 04:48:43 +01:00
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-02-04 10:02:20 +00:00
sha256 = "jFNco64yoZC1TZbTIHGVf+wBYYQHo2JRiMZFHngzYTs=";
2018-07-29 04:48:43 +01:00
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
docbook_xsl
docbook_xml_dtd_43
gobject-introspection
gtk-doc
meson
2018-07-29 04:48:43 +01:00
ninja
pkg-config
python3
python3.pkgs.wrapPython
wrapGAppsHook
];
2018-07-29 04:48:43 +01:00
buildInputs = [
2018-09-13 08:27:08 +01:00
ctags
flatpak
2018-07-29 04:48:43 +01:00
gnome3.devhelp
2020-05-15 16:29:00 +01:00
glade
2018-12-14 15:05:44 +00:00
libgit2-glib
2019-03-23 04:50:12 +00:00
libpeas
libportal
vte
2018-07-29 04:48:43 +01:00
gspell
gtk3
2018-09-13 04:18:50 +01:00
gtksourceview4
2018-07-29 04:48:43 +01:00
json-glib
jsonrpc-glib
libdazzle
libxml2
ostree
2018-07-29 04:48:43 +01:00
pcre
pcre2
python3
2018-07-29 04:48:43 +01:00
sysprof
template-glib
vala
webkitgtk
];
checkInputs = [
dbus
xvfb_run
];
outputs = [ "out" "devdoc" ];
2018-07-29 04:48:43 +01:00
prePatch = ''
patchShebangs build-aux/meson/post_install.py
2018-07-29 04:48:43 +01:00
'';
mesonFlags = [
"-Dpython_libprefix=${python3.libPrefix}"
"-Ddocs=true"
# Making the build system correctly detect clang header and library paths
# is difficult. Somebody should look into fixing this.
"-Dplugin_clang=false"
# Do not try to check if appstream images exist
"-Dnetwork_tests=false"
2018-07-29 04:48:43 +01: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.
doCheck = true;
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 ];
2018-07-29 04:48:43 +01: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 lib; {
2018-07-29 04:48:43 +01:00
description = "An IDE for writing GNOME-based software";
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.
'';
homepage = "https://wiki.gnome.org/Apps/Builder";
license = licenses.gpl3Plus;
maintainers = teams.gnome.members;
2018-07-29 04:48:43 +01:00
platforms = platforms.linux;
2018-08-01 21:12:54 +01:00
};
2018-07-29 04:48:43 +01:00
}