2014-10-21 20:23:55 +01:00
|
|
|
{ stdenv, fetchurl, kernel }:
|
2014-10-14 12:48:46 +01:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast kernel.version "3.4"; # fails on 3.2
|
2014-10-21 20:46:17 +01:00
|
|
|
assert builtins.substring 0 4 kernel.version != "3.12";
|
2013-07-04 21:34:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-14 20:12:23 +01:00
|
|
|
pname = "lttng-modules-${version}";
|
2014-01-05 01:57:21 +00:00
|
|
|
name = "${pname}-${kernel.version}";
|
2014-10-21 20:23:55 +01:00
|
|
|
version = "2.6.0-rc1"; # "git describe bf2ba318fff"
|
2013-07-04 21:34:32 +01:00
|
|
|
|
2014-10-21 20:23:55 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lttng/lttng-modules/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "01gha02ybbzr86v6s6bqn649jiw5k89kb363b9s1iv8igrdlzhl1";
|
2013-07-04 21:34:32 +01:00
|
|
|
};
|
|
|
|
|
2014-12-09 18:31:23 +00:00
|
|
|
# from upstream ML, should be in the next release
|
2014-12-10 11:53:19 +00:00
|
|
|
patches = [ ./build-fix.patch ./6f0af2643c40b57280796eaa4fe60ce4f678b6dc.patch ];
|
2014-12-09 18:31:23 +00:00
|
|
|
|
2013-07-04 21:34:32 +01:00
|
|
|
preConfigure = ''
|
2014-01-05 01:57:21 +00:00
|
|
|
export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
2013-07-04 21:34:32 +01: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-22 23:13:31 +01:00
|
|
|
license = with licenses; [ lgpl21 gpl2 mit ];
|
2013-07-04 21:34:32 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|