Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 966 B view raw
1{ 2 lib, 3 stdenv, 4 kernel, 5 kernelModuleMakeFlags, 6 fetchFromGitHub, 7}: 8 9stdenv.mkDerivation { 10 pname = "can-isotp"; 11 version = "20200910"; 12 13 hardeningDisable = [ "pic" ]; 14 15 src = fetchFromGitHub { 16 owner = "hartkopp"; 17 repo = "can-isotp"; 18 rev = "21a3a59e2bfad246782896841e7af042382fcae7"; 19 sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq"; 20 }; 21 22 makeFlags = kernelModuleMakeFlags ++ [ 23 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 24 "INSTALL_MOD_PATH=${placeholder "out"}" 25 ]; 26 27 buildFlags = [ "modules" ]; 28 installTargets = [ "modules_install" ]; 29 30 nativeBuildInputs = kernel.moduleBuildDependencies; 31 32 meta = with lib; { 33 broken = kernel.kernelAtLeast "5.16"; 34 description = "Kernel module for ISO-TP (ISO 15765-2)"; 35 homepage = "https://github.com/hartkopp/can-isotp"; 36 license = licenses.gpl2Only; 37 platforms = platforms.linux; 38 maintainers = [ maintainers.evck ]; 39 }; 40}