d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
23 lines
434 B
Nix
23 lines
434 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, kernel
|
|
, pahole
|
|
}:
|
|
|
|
stdenv.mkDerivation (import ./common.nix { inherit fetchurl lib; pname = "linux-gpib-kernel"; } // {
|
|
|
|
postPatch = ''
|
|
sed -i 's@/sbin/depmod -A@@g' Makefile
|
|
'';
|
|
|
|
buildInputs = [ pahole ] ++ kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = [
|
|
"LINUX_SRCDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
];
|
|
|
|
installFlags = [
|
|
"INSTALL_MOD_PATH=$(out)"
|
|
];
|
|
})
|