From 33d78777a3a9fb3802e4c7d5332519f921d182db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Thu, 4 Jul 2013 21:32:12 +0200 Subject: [PATCH] lttng-ust: new package This is the user space library for LTTng. It is needed to do user space tracing, as opposed to kernel space tracing. --- .../tools/misc/lttng-ust/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/tools/misc/lttng-ust/default.nix diff --git a/pkgs/development/tools/misc/lttng-ust/default.nix b/pkgs/development/tools/misc/lttng-ust/default.nix new file mode 100644 index 000000000000..d234a7b74f8a --- /dev/null +++ b/pkgs/development/tools/misc/lttng-ust/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, liburcu }: + +# 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 { + name = "lttng-ust-2.2.1"; + + src = fetchurl { + url = "https://lttng.org/files/lttng-ust/${name}.tar.bz2"; + sha256 = "0881ri3v96fjii24qnwgsypk4crri4qp6mc4zp7kwghz8gys9rla"; + }; + + buildInputs = [ liburcu ]; + + meta = with stdenv.lib; { + description = "LTTng Userspace Tracer libraries"; + homepage = http://lttng.org/; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc9e0ccbc986..d4e467267c65 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3542,6 +3542,8 @@ let ltrace = callPackage ../development/tools/misc/ltrace { }; + lttngUst = callPackage ../development/tools/misc/lttng-ust { }; + mk = callPackage ../development/tools/build-managers/mk { }; neoload = callPackage ../development/tools/neoload {