1 { lib, stdenv, fetchFromGitHub, kernel }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2022-06-07";
7 src = fetchFromGitHub {
10 rev = "5af2a2213d2f3d944b19ec7ccdb96f16d56adddb";
11 hash = "sha256-p4TooWUOWPfNdePE18ESmRJezPDAl9nLb55LQtkJiSg=";
14 nativeBuildInputs = kernel.moduleBuildDependencies;
16 makeFlags = kernel.makeFlags ++ [
18 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
22 sed -i ./Makefile -e '/depmod/d'
25 installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
28 description = "Linux driver for Intel Touch Host Controller";
29 homepage = "https://github.com/quo/ithc-linux";
30 license = licenses.publicDomain;
31 maintainers = with maintainers; [ aacebedo ];
32 platforms = platforms.linux;
33 broken = kernel.kernelOlder "5.9";