2021-12-19 01:06:50 +00:00
|
|
|
{ version, sha256 }:
|
|
|
|
|
|
|
|
{ lib, stdenv, fetchurl, pkg-config, liburcu, numactl, python3 }:
|
|
|
|
|
|
|
|
# NOTE:
|
|
|
|
# ./configure ...
|
|
|
|
# [...]
|
|
|
|
# LTTng-UST will be built with the following options:
|
|
|
|
#
|
|
|
|
# Java support (JNI): Disabled
|
|
|
|
# sdt.h integration: Disabled
|
|
|
|
# [...]
|
|
|
|
#
|
|
|
|
# Debian builds with std.h (systemtap).
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lttng-ust";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lttng.org/files/lttng-ust/${pname}-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ numactl python3 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
hardeningDisable = [ "trivialautovarinit" ];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
configureFlags = [ "--disable-examples" ];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
propagatedBuildInputs = [ liburcu ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LTTng Userspace Tracer libraries";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "lttng-gen-tp";
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://lttng.org/";
|
|
|
|
license = with licenses; [ lgpl21Only gpl2Only mit ];
|
2024-06-20 14:57:18 +00:00
|
|
|
platforms = lib.intersectLists platforms.linux liburcu.meta.platforms;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|