1 { lib, stdenv, kernel, fetchFromGitHub }:
7 hardeningDisable = [ "pic" ];
9 src = fetchFromGitHub {
12 rev = "21a3a59e2bfad246782896841e7af042382fcae7";
13 sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
16 makeFlags = kernel.makeFlags ++ [
17 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
18 "INSTALL_MOD_PATH=${placeholder "out"}"
21 buildFlags = [ "modules" ];
22 installTargets = [ "modules_install" ];
24 nativeBuildInputs = kernel.moduleBuildDependencies;
27 broken = kernel.kernelAtLeast "5.16";
28 description = "Kernel module for ISO-TP (ISO 15765-2)";
29 homepage = "https://github.com/hartkopp/can-isotp";
30 license = licenses.gpl2Only;
31 platforms = platforms.linux;
32 maintainers = [ maintainers.evck ];