blob: dd43b83520795c3e64dc0e897a908a0dff5fae6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
stdenv,
fetchFromGitHub,
kernel,
kernelModuleMakeFlags,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lttng-modules-${kernel.version}";
version = "2.14.3";
src = fetchFromGitHub {
owner = "lttng";
repo = "lttng-modules";
rev = "v${finalAttrs.version}";
hash = "sha256-W9mfCMboVkImqBtUlTxoBkn3IHjjfbZiSaeoeFX5IcM=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
makeFlags = kernelModuleMakeFlags ++ [
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=${placeholder "out"}"
];
installTargets = [ "modules_install" ];
enableParallelBuilding = true;
meta = {
description = "Linux kernel modules for LTTng tracing";
homepage = "https://lttng.org/";
license = with lib.licenses; [
lgpl21Only
gpl2Only
mit
];
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.bjornfor ];
broken =
(lib.versions.majorMinor kernel.modDirVersion) == "5.10"
|| (lib.versions.majorMinor kernel.modDirVersion) == "5.4";
};
})
|