about summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-16 10:38:36 -0400
committerTor Hedin Brønner <torhedinbronner@gmail.com>2019-09-30 19:39:50 +0200
commita821167046d808365c667e13db44ebba5a680a89 (patch)
tree9e950f585f917eecf315c9d4c4f9eb852067a3a3 /pkgs/desktops/gnome-3
parentb916c657066277e8d30c5061caf4e2068f64f380 (diff)
downloadnixlib-a821167046d808365c667e13db44ebba5a680a89.tar
nixlib-a821167046d808365c667e13db44ebba5a680a89.tar.gz
nixlib-a821167046d808365c667e13db44ebba5a680a89.tar.bz2
nixlib-a821167046d808365c667e13db44ebba5a680a89.tar.lz
nixlib-a821167046d808365c667e13db44ebba5a680a89.tar.xz
nixlib-a821167046d808365c667e13db44ebba5a680a89.tar.zst
nixlib-a821167046d808365c667e13db44ebba5a680a89.zip
gnome3.mutter: enable profiler
This needed a patch to get the correct directory to the sysprof
dbus interface.
Diffstat (limited to 'pkgs/desktops/gnome-3')
-rw-r--r--pkgs/desktops/gnome-3/core/mutter/0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch25
-rw-r--r--pkgs/desktops/gnome-3/core/mutter/default.nix5
2 files changed, 28 insertions, 2 deletions
diff --git a/pkgs/desktops/gnome-3/core/mutter/0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch b/pkgs/desktops/gnome-3/core/mutter/0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch
new file mode 100644
index 000000000000..2df70ff9646a
--- /dev/null
+++ b/pkgs/desktops/gnome-3/core/mutter/0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch
@@ -0,0 +1,25 @@
+From 71acfd5258b4d12323fc51dda48e83830e62e696 Mon Sep 17 00:00:00 2001
+From: worldofpeace <worldofpeace@protonmail.ch>
+Date: Mon, 16 Sep 2019 11:18:27 -0400
+Subject: [PATCH] build: use get_pkgconfig_variable for sysprof dbusdir
+
+---
+ src/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index 182f7f5f5..43060865b 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -710,7 +710,7 @@ if have_profiler
+     'backends/meta-profiler.h',
+   ]
+ 
+-  dbus_interfaces_dir = join_paths(datadir, 'dbus-1', 'interfaces')
++  dbus_interfaces_dir = join_paths(sysprof_dep.get_pkgconfig_variable('prefix'), 'share', 'dbus-1', 'interfaces')
+   sysprof3_dbus_file = join_paths(dbus_interfaces_dir, 'org.gnome.Sysprof3.Profiler.xml')
+ 
+   dbus_sysprof3_profiler_built_sources = gnome.gdbus_codegen('meta-dbus-sysprof3-profiler',
+-- 
+2.22.1
+
diff --git a/pkgs/desktops/gnome-3/core/mutter/default.nix b/pkgs/desktops/gnome-3/core/mutter/default.nix
index 8022a0b110c8..6c4d7a97ba24 100644
--- a/pkgs/desktops/gnome-3/core/mutter/default.nix
+++ b/pkgs/desktops/gnome-3/core/mutter/default.nix
@@ -25,7 +25,6 @@ stdenv.mkDerivation rec {
   mesonFlags = [
     "-Dxwayland-path=${xwayland}/bin/Xwayland"
     "-Dinstalled_tests=false" # TODO: enable these
-    "-Dprofiler=false"
   ];
 
   propagatedBuildInputs = [
@@ -51,7 +50,7 @@ stdenv.mkDerivation rec {
     geocode-glib libinput libgudev libwacom
     libcanberra-gtk3 zenity xkeyboard_config libxkbfile
     libxkbcommon pipewire xwayland
-    gnome-settings-daemon # sysprof
+    gnome-settings-daemon sysprof
   ];
 
   patches = [
@@ -60,6 +59,8 @@ stdenv.mkDerivation rec {
       url = "https://gitlab.gnome.org/GNOME/mutter/commit/850ef518795dcc20d3b9a4f661f70ff8d0ddacb2.patch";
       sha256 = "0cxdbrbcc8kfkvw7ryxjm2v1vk15jki7bawn128385r5hasabhxf";
     })
+   # TODO: submit upstream
+   ./0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch
     (substituteAll {
       src = ./fix-paths.patch;
       inherit zenity;