summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/gnome-builder
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2018-07-30 15:04:31 -0700
committerJamey Sharp <jamey@minilop.net>2018-07-30 15:20:45 -0700
commit7bd3ca49bcd56fe8f8ac6e4fbbb81769d5ad835f (patch)
treee588e7e19a66a4af405f05598e6f7898a6f18ec4 /pkgs/applications/editors/gnome-builder
parent126f2057521ff0dd32ed8f641300b25cb28f00a3 (diff)
gnome-builder: address review from @jtojnar/#44217
Diffstat (limited to 'pkgs/applications/editors/gnome-builder')
-rw-r--r--pkgs/applications/editors/gnome-builder/default.nix19
-rw-r--r--pkgs/applications/editors/gnome-builder/flatpak-deps.patch12
2 files changed, 24 insertions, 7 deletions
diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix
index a8de170d1531..07e1925173a6 100644
--- a/pkgs/applications/editors/gnome-builder/default.nix
+++ b/pkgs/applications/editors/gnome-builder/default.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, gnome3, gobjectIntrospection, meson, ninja, pkgconfig
, appstream-glib, desktop-file-utils, python3, python3Packages, wrapGAppsHook
-, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle, libxml2, pcre
-, sysprof, template-glib, vala, webkitgtk
+, flatpak, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle
+, libxml2, ostree, pcre , sysprof, template-glib, vala, webkitgtk
}:
let
version = "3.28.4";
@@ -14,7 +14,7 @@ in stdenv.mkDerivation {
sha256 = "0ibb74jlyrl5f6rj1b74196zfg2qaf870lxgi76qzpkgwq0iya05";
};
- buildInputs = [
+ nativeBuildInputs = [
python3Packages.wrapPython
wrapGAppsHook
gobjectIntrospection
@@ -24,7 +24,10 @@ in stdenv.mkDerivation {
appstream-glib
desktop-file-utils
+ ];
+ buildInputs = [
+ flatpak
gnome3.devhelp
gnome3.libgit2-glib
gnome3.libpeas
@@ -36,7 +39,9 @@ in stdenv.mkDerivation {
jsonrpc-glib
libdazzle
libxml2
+ ostree
pcre
+ python3
sysprof
template-glib
vala
@@ -44,17 +49,17 @@ in stdenv.mkDerivation {
];
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 = [
./python-libprefix.patch
+ ./flatpak-deps.patch
];
mesonFlags = [
"-Dpython_libprefix=${python3.libPrefix}"
"-Dwith_clang=false"
- "-Dwith_flatpak=false"
];
pythonPath = with python3Packages; requiredPythonModules [ pygobject3 ];
@@ -62,7 +67,6 @@ in stdenv.mkDerivation {
preFixup = ''
buildPythonPath "$out $pythonPath"
gappsWrapperArgs+=(
- --prefix PATH : "$program_PATH"
--prefix PYTHONPATH : "$program_PYTHONPATH"
)
@@ -77,7 +81,8 @@ in stdenv.mkDerivation {
meta = with stdenv.lib; {
description = "An IDE for writing GNOME-based software";
homepage = https://wiki.gnome.org/Apps/Builder;
- license = licenses.gpl3;
+ license = licenses.gpl3Plus;
+ maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}
diff --git a/pkgs/applications/editors/gnome-builder/flatpak-deps.patch b/pkgs/applications/editors/gnome-builder/flatpak-deps.patch
new file mode 100644
index 000000000000..c773fda378ed
--- /dev/null
+++ b/pkgs/applications/editors/gnome-builder/flatpak-deps.patch
@@ -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,
+ ]