2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, kernel }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "lttng-modules-${kernel.version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lttng.org/files/lttng-modules/lttng-modules-${version}.tar.bz2";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "0mikc3fdjd0w6rrcyksjzmv0czvgba6yk8dfmz4a3cr8s4y2pgsy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
export INSTALL_MOD_PATH="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installTargets = [ "modules_install" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Linux kernel modules for LTTng tracing";
|
|
|
|
homepage = "https://lttng.org/";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = with licenses; [ lgpl21Only gpl2Only mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|