1{
2 lib,
3 stdenv,
4 fetchurl,
5 kernel,
6 pahole,
7}:
8
9stdenv.mkDerivation (
10 import ./common.nix {
11 inherit fetchurl lib;
12 pname = "linux-gpib-kernel";
13 }
14 // {
15
16 postPatch = ''
17 sed -i 's@/sbin/depmod -A@@g' Makefile
18 '';
19
20 buildInputs = [ pahole ] ++ kernel.moduleBuildDependencies;
21
22 makeFlags = [
23 "LINUX_SRCDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
24 ];
25
26 installFlags = [
27 "INSTALL_MOD_PATH=$(out)"
28 ];
29 }
30)