summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-07-11 14:40:52 +0200
committerJan Tojnar <jtojnar@gmail.com>2022-07-11 21:52:24 +0200
commit20390cad8a470ba2fffe95524db0a308384f70c0 (patch)
treec630c1b7d58d4ba75737f3f7c35d3e3075c9aaa7
parentMerge pull request #160224 from yshym/wluma-4.1.2 (diff)
downloadnixpkgs-20390cad8a470ba2fffe95524db0a308384f70c0.tar.gz
gjs: add profiler support
Necessary to be able to use Sysprof for profiling GJS apps such as GNOME Shell: https://gitlab.gnome.org/GNOME/gjs/-/blob/105c0a44b16ee8b178ad9f6e880da33e9c6313e7/doc/Profiling.md https://blogs.gnome.org/chergert/2020/03/15/how-to-use-sysprof-to-part-ii/
-rw-r--r--pkgs/development/libraries/gjs/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gjs/default.nix b/pkgs/development/libraries/gjs/default.nix
index 42ba3bd46df8..4ceea50d16bf 100644
--- a/pkgs/development/libraries/gjs/default.nix
+++ b/pkgs/development/libraries/gjs/default.nix
@@ -12,6 +12,7 @@
, pango
, cairo
, readline
+, libsysprof-capture
, glib
, libxml2
, dbus
@@ -60,6 +61,7 @@ in stdenv.mkDerivation rec {
gobject-introspection
cairo
readline
+ libsysprof-capture
spidermonkey_91
dbus # for dbus-run-session
];
@@ -73,7 +75,6 @@ in stdenv.mkDerivation rec {
];
mesonFlags = [
- "-Dprofiler=disabled"
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
];