2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, kernel }:
|
2013-07-04 22:34:32 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-05 15:53:12 +02:00
|
|
|
pname = "lttng-modules-${kernel.version}";
|
|
|
|
version = "2.12.6";
|
2013-07-04 22:34:32 +02:00
|
|
|
|
2015-09-13 10:34:06 +02:00
|
|
|
src = fetchurl {
|
2018-03-25 07:04:25 +02:00
|
|
|
url = "https://lttng.org/files/lttng-modules/lttng-modules-${version}.tar.bz2";
|
2021-06-05 15:53:12 +02:00
|
|
|
sha256 = "sha256-lawqLPkthdI/+9rKah7A18FnIR0eD7hQq5AASj9HXqo=";
|
2013-07-04 22:34:32 +02:00
|
|
|
};
|
|
|
|
|
2018-06-08 13:57:04 +02:00
|
|
|
buildInputs = kernel.moduleBuildDependencies;
|
2018-06-07 12:44:56 +02:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "pic" ];
|
2016-02-12 03:25:57 +01:00
|
|
|
|
2019-10-30 03:23:29 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
2016-08-13 13:19:15 +02:00
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2017-02-23 11:01:23 +01:00
|
|
|
installTargets = [ "modules_install" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2013-07-04 22:34:32 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-07-04 22:34:32 +02:00
|
|
|
description = "Linux kernel modules for LTTng tracing";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://lttng.org/";
|
2021-06-05 15:53:12 +02:00
|
|
|
license = with licenses; [ lgpl21Only gpl2Only mit ];
|
2013-07-04 22:34:32 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|