asus-ec-sensors: init at 2021-12-16 (#150989)

This commit is contained in:
Nick Hu 2021-12-20 10:48:08 +00:00 committed by GitHub
parent c9a191dd6b
commit e0e8ca98c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
name = "asus-ec-sensors-${version}-${kernel.version}";
version = "unstable-2021-12-16";
src = fetchFromGitHub {
owner = "zeule";
repo = "asus-ec-sensors";
rev = "3621741c4ecb93216d546942707a9c413e971787";
sha256 = "0akdga2854q3w0pyi0jywa6cxr32541ifz0ka1hgn6j4czk39kyn";
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = [
"KERNELRELEASE=${kernel.modDirVersion}"
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
];
installPhase = ''
install asus-ec-sensors.ko -Dm444 -t ${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon
'';
meta = with lib; {
description = "Linux HWMON sensors driver for ASUS motherboards to read sensor data from the embedded controller";
homepage = "https://github.com/zeule/asus-ec-sensors";
license = licenses.gpl2;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ nickhu ];
};
}

View file

@ -292,6 +292,8 @@ in {
it87 = callPackage ../os-specific/linux/it87 {};
asus-ec-sensors = callPackage ../os-specific/linux/asus-ec-sensors {};
asus-wmi-sensors = callPackage ../os-specific/linux/asus-wmi-sensors {};
ena = callPackage ../os-specific/linux/ena {};