libsysprof-capture: init

This will allow us to use sysprof-capture as a dependency of other libraries like GLib.
This commit is contained in:
Jan Tojnar
2020-10-24 06:45:50 +02:00
parent 8e52dfa09e
commit c7c4c236e0
2 changed files with 32 additions and 0 deletions

View File

@@ -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;
};
}