2014-07-31 15:48:06 +02:00
|
|
|
{ stdenv, fetchurl, popt, libuuid, liburcu, lttng-ust, kmod }:
|
2013-07-04 21:38:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-04-13 10:46:10 +02:00
|
|
|
name = "lttng-tools-2.4.1";
|
2013-07-04 21:38:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lttng.org/files/lttng-tools/${name}.tar.bz2";
|
2014-04-13 10:46:10 +02:00
|
|
|
sha256 = "1v9f7a3c2shwgn4g759bblgr27h9ql9sfq71r1mbkf8rd235g2jr";
|
2013-07-04 21:38:23 +02:00
|
|
|
};
|
|
|
|
|
2014-07-31 15:48:06 +02:00
|
|
|
buildInputs = [ popt libuuid liburcu lttng-ust ];
|
2013-07-04 21:38:23 +02:00
|
|
|
|
2014-02-02 13:47:43 +01:00
|
|
|
prePatch = ''
|
|
|
|
sed -e "s|/sbin/modprobe|${kmod}/sbin/modprobe|g" \
|
|
|
|
-i src/bin/lttng-sessiond/modprobe.c
|
|
|
|
'';
|
2013-07-04 21:38:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tracing tools (kernel + user space) for Linux";
|
|
|
|
homepage = http://lttng.org/;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|