2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, kernel, fetchFromGitHub }:
|
2018-08-29 22:20:57 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "can-isotp";
|
2020-09-11 15:34:14 +00:00
|
|
|
version = "20200910";
|
2018-08-29 22:20:57 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2018-08-29 22:20:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hartkopp";
|
|
|
|
repo = "can-isotp";
|
2020-09-11 15:34:14 +00:00
|
|
|
rev = "21a3a59e2bfad246782896841e7af042382fcae7";
|
|
|
|
sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
|
2018-08-29 22:20:57 +00:00
|
|
|
};
|
2022-03-07 04:34:45 +00:00
|
|
|
|
2022-02-10 01:43:54 +00:00
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
|
|
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
|
|
];
|
2018-08-29 22:20:57 +00:00
|
|
|
|
2022-03-07 04:34:45 +00:00
|
|
|
buildFlags = [ "modules" ];
|
|
|
|
installTargets = [ "modules_install" ];
|
2018-08-29 22:20:57 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-07-23 15:42:08 +00:00
|
|
|
broken = kernel.kernelAtLeast "5.16";
|
2018-08-29 22:20:57 +00:00
|
|
|
description = "Kernel module for ISO-TP (ISO 15765-2)";
|
|
|
|
homepage = "https://github.com/hartkopp/can-isotp";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.evck ];
|
|
|
|
};
|
2021-01-19 21:20:11 +00:00
|
|
|
}
|