2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, kernel }:
|
2013-07-04 20:34:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-05 13:53:12 +00:00
|
|
|
pname = "lttng-modules-${kernel.version}";
|
2022-03-20 22:30:28 +00:00
|
|
|
version = "2.13.2";
|
2013-07-04 20:34:32 +00:00
|
|
|
|
2015-09-13 08:34:06 +00:00
|
|
|
src = fetchurl {
|
2018-03-25 05:04:25 +00:00
|
|
|
url = "https://lttng.org/files/lttng-modules/lttng-modules-${version}.tar.bz2";
|
2022-03-20 22:30:28 +00:00
|
|
|
sha256 = "sha256-39VH2QQcjFRa5be/7z8O8tnyUg1qtEGIyeqN5W1dKYo=";
|
2013-07-04 20:34:32 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 02:13:55 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
2018-06-07 10:44:56 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "pic" ];
|
2016-02-12 02:25:57 +00:00
|
|
|
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
2016-08-13 11:19:15 +00:00
|
|
|
|
2022-02-10 02:13:55 +00:00
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
|
|
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
|
|
];
|
2013-07-04 20:34:32 +00:00
|
|
|
|
2017-02-23 10:01:23 +00:00
|
|
|
installTargets = [ "modules_install" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2013-07-04 20:34:32 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-07-04 20:34:32 +00:00
|
|
|
description = "Linux kernel modules for LTTng tracing";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://lttng.org/";
|
2021-06-05 13:53:12 +00:00
|
|
|
license = with licenses; [ lgpl21Only gpl2Only mit ];
|
2013-07-04 20:34:32 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|