2018-07-31 02:34:30 +02:00
|
|
|
{ stdenv
|
|
|
|
, 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
|
2018-07-31 08:05:11 +02:00
|
|
|
, glibcLocales
|
2018-07-31 02:34:30 +02: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 05:48:43 +02: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-31 00:04:31 +02:00
|
|
|
nativeBuildInputs = [
|
2018-07-31 02:34:30 +02:00
|
|
|
#appstream-glib # tests fail if these tools are available
|
|
|
|
desktop-file-utils
|
|
|
|
docbook_xsl
|
2018-07-31 08:05:11 +02:00
|
|
|
docbook_xml_dtd_43
|
|
|
|
glibcLocales # for Meson's gtkdochelper
|
2018-07-29 05:48:43 +02:00
|
|
|
gobjectIntrospection
|
2018-07-31 02:34:30 +02:00
|
|
|
gtk-doc
|
|
|
|
hicolor-icon-theme
|
2018-07-29 05:48:43 +02:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
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 = [
|
|
|
|
flatpak
|
2018-07-29 05:48:43 +02:00
|
|
|
gnome3.devhelp
|
|
|
|
gnome3.libgit2-glib
|
|
|
|
gnome3.libpeas
|
|
|
|
gnome3.vte
|
|
|
|
gspell
|
|
|
|
gtk3
|
|
|
|
gtksourceview3
|
|
|
|
json-glib
|
|
|
|
jsonrpc-glib
|
|
|
|
libdazzle
|
|
|
|
libxml2
|
2018-07-31 00:04:31 +02:00
|
|
|
ostree
|
2018-07-29 05:48:43 +02:00
|
|
|
pcre
|
2018-07-31 00:04:31 +02:00
|
|
|
python3
|
2018-07-29 05:48:43 +02:00
|
|
|
sysprof
|
|
|
|
template-glib
|
|
|
|
vala
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
2018-07-31 06:43:12 +02:00
|
|
|
outputDevdoc = "out";
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
2018-07-31 02:34:30 +02:00
|
|
|
./0001-Make-libide-s-install_dir-an-absolute-path.patch
|
|
|
|
./0002-Allow-packagers-to-specify-the-Python-libprefix.patch
|
|
|
|
./0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch
|
2018-07-29 05:48:43 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dpython_libprefix=${python3.libPrefix}"
|
|
|
|
"-Dwith_clang=false"
|
2018-07-31 02:34:30 +02:00
|
|
|
"-Dwith_docs=true"
|
2018-07-29 05:48:43 +02:00
|
|
|
];
|
|
|
|
|
2018-07-31 08:05:11 +02:00
|
|
|
preInstall = ''
|
|
|
|
export LC_ALL="en_US.utf-8"
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-07-31 02:34:30 +02:00
|
|
|
#doCheck = true;
|
|
|
|
|
2018-07-29 05:48:43 +02:00
|
|
|
passthru.updateScript = gnome3.updateScript { packageName = pname; };
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An IDE for writing GNOME-based software";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Builder;
|
2018-07-31 00:04:31 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
2018-07-29 05:48:43 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|