vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / os-specific / linux / can-isotp / default.nix
blob06329478ded46396e14e926e988b9b988403621e
1 { lib, stdenv, kernel, fetchFromGitHub }:
3 stdenv.mkDerivation {
4   pname = "can-isotp";
5   version = "20200910";
7   hardeningDisable = [ "pic" ];
9   src = fetchFromGitHub {
10     owner = "hartkopp";
11     repo = "can-isotp";
12     rev = "21a3a59e2bfad246782896841e7af042382fcae7";
13     sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
14   };
16   makeFlags = kernel.makeFlags ++ [
17     "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
18     "INSTALL_MOD_PATH=${placeholder "out"}"
19   ];
21   buildFlags = [ "modules" ];
22   installTargets = [ "modules_install" ];
24   nativeBuildInputs = kernel.moduleBuildDependencies;
26   meta = with lib; {
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 ];
33   };