2014-10-13 20:07:11 +01:00
|
|
|
{ stdenv, fetchurl, popt, libuuid, liburcu, lttng-ust, kmod, libxml2 }:
|
2013-07-04 20:38:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-06 14:22:27 +00:00
|
|
|
name = "lttng-tools-2.5.2";
|
2013-07-04 20:38:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lttng.org/files/lttng-tools/${name}.tar.bz2";
|
2014-12-06 14:22:27 +00:00
|
|
|
sha256 = "0g931f90pl9bfgsxihrj0zlw9ivyaplbiw28axkscmjvzd1d6lhz";
|
2013-07-04 20:38:23 +01:00
|
|
|
};
|
|
|
|
|
2014-10-13 20:07:11 +01:00
|
|
|
buildInputs = [ popt libuuid liburcu lttng-ust libxml2 ];
|
2013-07-04 20:38:23 +01:00
|
|
|
|
2014-02-02 12:47:43 +00:00
|
|
|
prePatch = ''
|
2016-08-14 10:57:45 +01:00
|
|
|
sed -e "s|/sbin/modprobe|${kmod}/bin/modprobe|g" \
|
2014-02-02 12:47:43 +00:00
|
|
|
-i src/bin/lttng-sessiond/modprobe.c
|
|
|
|
'';
|
2013-07-04 20:38:23 +01: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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|