1 { lib, stdenv, fetchFromGitHub, kernel }:
4 hash = "sha256-VE6sCehjXlRuOVcK4EN2H+FhaVaBi/jrAYx4TZjbreA=";
7 name = "system76-io-module-${version}-${kernel.version}";
9 passthru.moduleName = "system76_io";
11 src = fetchFromGitHub {
13 repo = "system76-io-dkms";
18 hardeningDisable = [ "pic" ];
20 nativeBuildInputs = kernel.moduleBuildDependencies;
23 "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
27 install -D system76-io.ko $out/lib/modules/${kernel.modDirVersion}/misc/system76-io.ko
31 maintainers = with lib.maintainers; [ khumba ahoneybun ];
32 license = lib.licenses.gpl2Plus;
33 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
34 broken = lib.versionOlder kernel.version "5.10";
35 description = "DKMS module for controlling System76 Io board";
36 homepage = "https://github.com/pop-os/system76-io-dkms";