about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/profiling/sysprof/capture.nix
blob: e6690fc0c68b69998e04ce52930d01f475ffd663 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv
, meson
, ninja
, sysprof
}:

stdenv.mkDerivation rec {
  pname = "libsysprof-capture";

  inherit (sysprof) src version;

  nativeBuildInputs = [
    meson
    ninja
  ];

  mesonFlags = [
    "-Dwith_sysprofd=none"
    "-Dlibsysprof=false"
    "-Dlibunwind=false"
    "-Dhelp=false"
    "-Denable_tools=false"
    "-Denable_tests=false"
    "-Denable_examples=false"
  ];

  meta = sysprof.meta // {
    description = "Static library for Sysprof capture data generation";
    license = lib.licenses.bsd2Patent;
    platforms = lib.platforms.all;
  };
}