2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, kernel, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "can-isotp";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "20200910";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hartkopp";
|
|
|
|
repo = "can-isotp";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "21a3a59e2bfad246782896841e7af042382fcae7";
|
|
|
|
sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make modules
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make modules_install
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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-02-05 17:12:51 +00:00
|
|
|
}
|