gnome-builder: address review from @jtojnar/#44217
This commit is contained in:
parent
126f205752
commit
7bd3ca49bc
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchurl, gnome3, gobjectIntrospection, meson, ninja, pkgconfig
|
{ stdenv, fetchurl, gnome3, gobjectIntrospection, meson, ninja, pkgconfig
|
||||||
, appstream-glib, desktop-file-utils, python3, python3Packages, wrapGAppsHook
|
, appstream-glib, desktop-file-utils, python3, python3Packages, wrapGAppsHook
|
||||||
, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle, libxml2, pcre
|
, flatpak, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle
|
||||||
, sysprof, template-glib, vala, webkitgtk
|
, libxml2, ostree, pcre , sysprof, template-glib, vala, webkitgtk
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
version = "3.28.4";
|
version = "3.28.4";
|
||||||
|
@ -14,7 +14,7 @@ in stdenv.mkDerivation {
|
||||||
sha256 = "0ibb74jlyrl5f6rj1b74196zfg2qaf870lxgi76qzpkgwq0iya05";
|
sha256 = "0ibb74jlyrl5f6rj1b74196zfg2qaf870lxgi76qzpkgwq0iya05";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [
|
||||||
python3Packages.wrapPython
|
python3Packages.wrapPython
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
gobjectIntrospection
|
gobjectIntrospection
|
||||||
|
@ -24,7 +24,10 @@ in stdenv.mkDerivation {
|
||||||
|
|
||||||
appstream-glib
|
appstream-glib
|
||||||
desktop-file-utils
|
desktop-file-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
flatpak
|
||||||
gnome3.devhelp
|
gnome3.devhelp
|
||||||
gnome3.libgit2-glib
|
gnome3.libgit2-glib
|
||||||
gnome3.libpeas
|
gnome3.libpeas
|
||||||
|
@ -36,7 +39,9 @@ in stdenv.mkDerivation {
|
||||||
jsonrpc-glib
|
jsonrpc-glib
|
||||||
libdazzle
|
libdazzle
|
||||||
libxml2
|
libxml2
|
||||||
|
ostree
|
||||||
pcre
|
pcre
|
||||||
|
python3
|
||||||
sysprof
|
sysprof
|
||||||
template-glib
|
template-glib
|
||||||
vala
|
vala
|
||||||
|
@ -44,17 +49,17 @@ in stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
sed -i 's@/usr/bin/env python3@${python3}/bin/python3@g' build-aux/meson/post_install.py
|
patchShebangs build-aux/meson/post_install.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./python-libprefix.patch
|
./python-libprefix.patch
|
||||||
|
./flatpak-deps.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dpython_libprefix=${python3.libPrefix}"
|
"-Dpython_libprefix=${python3.libPrefix}"
|
||||||
"-Dwith_clang=false"
|
"-Dwith_clang=false"
|
||||||
"-Dwith_flatpak=false"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonPath = with python3Packages; requiredPythonModules [ pygobject3 ];
|
pythonPath = with python3Packages; requiredPythonModules [ pygobject3 ];
|
||||||
|
@ -62,7 +67,6 @@ in stdenv.mkDerivation {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
buildPythonPath "$out $pythonPath"
|
buildPythonPath "$out $pythonPath"
|
||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
--prefix PATH : "$program_PATH"
|
|
||||||
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -77,7 +81,8 @@ in stdenv.mkDerivation {
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An IDE for writing GNOME-based software";
|
description = "An IDE for writing GNOME-based software";
|
||||||
homepage = https://wiki.gnome.org/Apps/Builder;
|
homepage = https://wiki.gnome.org/Apps/Builder;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = gnome3.maintainers;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/src/plugins/flatpak/meson.build b/src/plugins/flatpak/meson.build
|
||||||
|
index 657f7939b..28982bb74 100644
|
||||||
|
--- a/src/plugins/flatpak/meson.build
|
||||||
|
+++ b/src/plugins/flatpak/meson.build
|
||||||
|
@@ -52,6 +52,7 @@ flatpak_sources = [
|
||||||
|
|
||||||
|
gnome_builder_plugins_deps += [
|
||||||
|
dependency('flatpak', version: '>= 0.8.0'),
|
||||||
|
+ dependency('ostree-1'),
|
||||||
|
dependency('libsoup-2.4', version: '>= 2.52.0'),
|
||||||
|
libgit_dep,
|
||||||
|
]
|
Loading…
Reference in New Issue