mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
24 lines
434 B
Nix
24 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)"
|
|
];
|
|
})
|