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
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
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;
};
}

View File

@ -18621,6 +18621,8 @@ in
sysprof = callPackage ../development/tools/profiling/sysprof { }; sysprof = callPackage ../development/tools/profiling/sysprof { };
libsysprof-capture = callPackage ../development/tools/profiling/sysprof/capture.nix { };
sysklogd = callPackage ../os-specific/linux/sysklogd { }; sysklogd = callPackage ../os-specific/linux/sysklogd { };
syslinux = callPackage ../os-specific/linux/syslinux { }; syslinux = callPackage ../os-specific/linux/syslinux { };