nixpkgs/pkgs/applications/science/electronics/linux-gpib/kernel.nix
2023-08-03 21:19:45 +08:00

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)"
];
})