2018-07-31 01:34:30 +01:00
|
|
|
{ stdenv
|
2018-09-13 08:27:08 +01:00
|
|
|
, ctags
|
2018-07-31 01:34:30 +01:00
|
|
|
, desktop-file-utils
|
|
|
|
, docbook_xsl
|
2018-07-31 07:05:11 +01:00
|
|
|
, docbook_xml_dtd_43
|
2018-08-01 01:03:08 +01:00
|
|
|
, fetchpatch
|
2018-07-31 01:34:30 +01:00
|
|
|
, fetchurl
|
|
|
|
, flatpak
|
2018-07-31 07:05:11 +01:00
|
|
|
, glibcLocales
|
2018-07-31 01:34:30 +01:00
|
|
|
, gnome3
|
|
|
|
, gobjectIntrospection
|
|
|
|
, gspell
|
|
|
|
, gtk-doc
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview3
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, json-glib
|
|
|
|
, jsonrpc-glib
|
|
|
|
, libdazzle
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, ostree
|
|
|
|
, pcre
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, sysprof
|
|
|
|
, template-glib
|
|
|
|
, vala
|
|
|
|
, webkitgtk
|
|
|
|
, wrapGAppsHook
|
2018-07-29 04:48:43 +01:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
version = "3.28.4";
|
|
|
|
pname = "gnome-builder";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0ibb74jlyrl5f6rj1b74196zfg2qaf870lxgi76qzpkgwq0iya05";
|
|
|
|
};
|
|
|
|
|
2018-07-30 23:04:31 +01:00
|
|
|
nativeBuildInputs = [
|
2018-07-31 01:34:30 +01:00
|
|
|
#appstream-glib # tests fail if these tools are available
|
|
|
|
desktop-file-utils
|
|
|
|
docbook_xsl
|
2018-07-31 07:05:11 +01:00
|
|
|
docbook_xml_dtd_43
|
|
|
|
glibcLocales # for Meson's gtkdochelper
|
2018-07-29 04:48:43 +01:00
|
|
|
gobjectIntrospection
|
2018-07-31 01:34:30 +01:00
|
|
|
gtk-doc
|
|
|
|
hicolor-icon-theme
|
2018-07-29 04:48:43 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2018-09-03 22:55:43 +01:00
|
|
|
python3
|
2018-07-31 01:34:30 +01:00
|
|
|
python3.pkgs.wrapPython
|
|
|
|
wrapGAppsHook
|
2018-07-30 23:04:31 +01:00
|
|
|
];
|
2018-07-29 04:48:43 +01:00
|
|
|
|
2018-07-30 23:04:31 +01:00
|
|
|
buildInputs = [
|
2018-09-13 08:27:08 +01:00
|
|
|
ctags
|
2018-07-30 23:04:31 +01:00
|
|
|
flatpak
|
2018-07-29 04:48:43 +01:00
|
|
|
gnome3.devhelp
|
|
|
|
gnome3.libgit2-glib
|
|
|
|
gnome3.libpeas
|
|
|
|
gnome3.vte
|
|
|
|
gspell
|
|
|
|
gtk3
|
|
|
|
gtksourceview3
|
|
|
|
json-glib
|
|
|
|
jsonrpc-glib
|
|
|
|
libdazzle
|
|
|
|
libxml2
|
2018-07-30 23:04:31 +01:00
|
|
|
ostree
|
2018-07-29 04:48:43 +01:00
|
|
|
pcre
|
2018-07-30 23:04:31 +01:00
|
|
|
python3
|
2018-07-29 04:48:43 +01:00
|
|
|
sysprof
|
|
|
|
template-glib
|
|
|
|
vala
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
2018-08-01 01:04:03 +01:00
|
|
|
outputs = [ "out" "devdoc" ];
|
2018-07-31 05:43:12 +01:00
|
|
|
|
2018-07-29 04:48:43 +01:00
|
|
|
prePatch = ''
|
2018-07-30 23:04:31 +01:00
|
|
|
patchShebangs build-aux/meson/post_install.py
|
2018-07-29 04:48:43 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
2018-08-01 01:03:08 +01:00
|
|
|
(fetchpatch {
|
|
|
|
name = "absolute-shared-library-path.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/1011cabc519fd7322e2d695c79bfce3e18ff6200.patch";
|
|
|
|
sha256 = "1g12zziidzrphp527aa8sklfaln4qpjprkz73f0c9w5ph6k252fw";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "python-libprefix.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/43494ce83a347f369ed4cfb8dd71d3b93452736b.patch";
|
|
|
|
sha256 = "0kgi3n3g13n1j4xa61ln9xiahcfdc43bxi5mw4yva2d5px445msf";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ostree-dependency.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/8b11773b65c95f464a0de16b91318c1ca73deeae.patch";
|
|
|
|
sha256 = "18r4hd90id0w6r0lzqpw83bcj45nm9jhr46a0ffi1mcayb18mgbk";
|
|
|
|
})
|
2018-07-29 04:48:43 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dpython_libprefix=${python3.libPrefix}"
|
2018-07-31 01:34:30 +01:00
|
|
|
"-Dwith_docs=true"
|
2018-08-01 05:51:11 +01:00
|
|
|
|
|
|
|
# Making the build system correctly detect clang header and library paths
|
|
|
|
# is difficult. Somebody should look into fixing this.
|
|
|
|
"-Dwith_clang=false"
|
2018-07-29 04:48:43 +01:00
|
|
|
];
|
|
|
|
|
2018-08-01 05:51:11 +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 = false;
|
|
|
|
|
2018-07-31 07:05:11 +01:00
|
|
|
preInstall = ''
|
|
|
|
export LC_ALL="en_US.utf-8"
|
|
|
|
'';
|
|
|
|
|
2018-07-31 01:34:30 +01:00
|
|
|
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 stdenv.lib; {
|
|
|
|
description = "An IDE for writing GNOME-based software";
|
2018-08-01 06:46:47 +01: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.
|
|
|
|
'';
|
2018-07-29 04:48:43 +01:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Builder;
|
2018-07-30 23:04:31 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
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
|
|
|
}
|