8 stdenv.mkDerivation rec {
9 name = "asus-ec-sensors-${version}-${kernel.version}";
10 version = "unstable-2022-07-10";
12 src = fetchFromGitHub {
14 repo = "asus-ec-sensors";
15 rev = "5fbdd1461dc88fc952e02717b8120438ce5558b3";
16 sha256 = "sha256-kBGl8i7HzdItMoM7L91OfX6y+bqDfd22WICRg0n25pI=";
19 hardeningDisable = [ "pic" ];
21 nativeBuildInputs = kernel.moduleBuildDependencies;
24 "KERNELRELEASE=${kernel.modDirVersion}"
25 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
29 install asus-ec-sensors.ko -Dm444 -t ${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon
33 description = "Linux HWMON sensors driver for ASUS motherboards to read sensor data from the embedded controller";
34 homepage = "https://github.com/zeule/asus-ec-sensors";
35 license = licenses.gpl2Only;
36 platforms = [ "x86_64-linux" ];
37 maintainers = with maintainers; [ nickhu ];
38 broken = kernel.kernelOlder "5.11";