summary refs log tree commit diff
path: root/pkgs/development/tools/profiling
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-10-24 06:45:50 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-10-24 06:57:59 +0200
commitc7c4c236e063a4ef1c5255e6d326eb32d9852047 (patch)
tree187a5d189162bb899bd65470bf80f25e96c3451f /pkgs/development/tools/profiling
parent8e52dfa09e2e4f766d74baa663af9d72327132fe (diff)
downloadnixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.tar
nixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.tar.gz
nixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.tar.bz2
nixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.tar.lz
nixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.tar.xz
nixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.tar.zst
nixpkgs-c7c4c236e063a4ef1c5255e6d326eb32d9852047.zip
libsysprof-capture: init
This will allow us to use sysprof-capture as a dependency of other libraries like GLib.
Diffstat (limited to 'pkgs/development/tools/profiling')
-rw-r--r--pkgs/development/tools/profiling/sysprof/capture.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/tools/profiling/sysprof/capture.nix b/pkgs/development/tools/profiling/sysprof/capture.nix
new file mode 100644
index 00000000000..a1f5d00332c
--- /dev/null
+++ b/pkgs/development/tools/profiling/sysprof/capture.nix
@@ -0,0 +1,30 @@
+{ stdenv
+, meson
+, ninja
+, sysprof
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libsysprof-capture";
+
+  inherit (sysprof) src version;
+
+  nativeBuildInputs = [
+    meson
+    ninja
+  ];
+
+  mesonFlags = [
+    "-Dwith_sysprofd=none"
+    "-Dlibsysprof=false"
+    "-Dhelp=false"
+    "-Denable_tools=false"
+    "-Denable_tests=false"
+    "-Denable_examples=false"
+  ];
+
+  meta = sysprof.meta // {
+    description = "Static library for Sysprof capture data generation";
+    platforms = stdenv.lib.platforms.all;
+  };
+}