1 { lib, stdenv, fetchFromGitHub, kernel }:
4 sha256 = "1i7zjn5cdv9h00fgjg46b8yrz4d3dqvfr25g3f13967ycy58m48h";
7 name = "system76-acpi-module-${version}-${kernel.version}";
9 passthru.moduleName = "system76_acpi";
11 src = fetchFromGitHub {
13 repo = "system76-acpi-dkms";
18 hardeningDisable = [ "pic" ];
20 nativeBuildInputs = kernel.moduleBuildDependencies;
23 "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
27 install -D system76_acpi.ko $out/lib/modules/${kernel.modDirVersion}/misc/system76_acpi.ko
28 mkdir -p $out/lib/udev/hwdb.d
29 mv lib/udev/hwdb.d/* $out/lib/udev/hwdb.d
33 maintainers = [ maintainers.khumba ];
34 license = [ licenses.gpl2Only ];
35 platforms = [ "i686-linux" "x86_64-linux" ];
36 broken = kernel.kernelOlder "5.2";
37 description = "System76 ACPI Driver (DKMS)";
38 homepage = "https://github.com/pop-os/system76-acpi-dkms";
40 This provides the system76_acpi in-tree driver for systems missing it.