2015-09-01 10:45:58 +02:00
|
|
|
{ stdenv, fetchFromGitHub, kernel }:
|
2014-10-14 13:48:46 +02:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast kernel.version "3.4"; # fails on 3.2
|
2013-07-04 22:34:32 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-14 21:12:23 +02:00
|
|
|
pname = "lttng-modules-${version}";
|
2014-01-05 02:57:21 +01:00
|
|
|
name = "${pname}-${kernel.version}";
|
2015-09-01 10:45:58 +02:00
|
|
|
version = "2.6.2-1-g7a88f8b";
|
2013-07-04 22:34:32 +02:00
|
|
|
|
2015-09-01 10:45:58 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lttng";
|
|
|
|
repo = "lttng-modules";
|
|
|
|
rev = "7a88f8b50696dd71e80c08661159caf8e119bf51";
|
|
|
|
sha256 = "1i185dvk4wn7fmmx1zfv6g15x8wi38jmav2dmq0mmy8cvriajq8h";
|
2013-07-04 22:34:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-01-05 02:57:21 +01:00
|
|
|
export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
2013-07-04 22:34:32 +02:00
|
|
|
export INSTALL_MOD_PATH="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make modules_install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Linux kernel modules for LTTng tracing";
|
|
|
|
homepage = http://lttng.org/;
|
2014-10-23 00:13:31 +02:00
|
|
|
license = with licenses; [ lgpl21 gpl2 mit ];
|
2013-07-04 22:34:32 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|