Skip to content

Commit

Permalink
asus-wmi-sensors: init at 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
voanhduy1512 committed Feb 4, 2020
1 parent fb1bc1b commit a1cc279
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/os-specific/linux/asus-wmi-sensors/default.nix
@@ -0,0 +1,37 @@
{ stdenv, fetchFromGitHub, kernel }:

stdenv.mkDerivation rec {
name = "asus-wmi-sensors-${version}-${kernel.version}";
version = "unstable-2019-11-07";

# The original was deleted from github, but this seems to be an active fork
src = fetchFromGitHub {
owner = "electrified";
repo = "asus-wmi-sensors";
rev = "8daafd45d1b860cf5b17eee1c94d93feb04164a9";
sha256 = "0kc0xlrsmf783ln5bqyj6qxzmrhdxdfdd2b9ygf2lbl2153i04vc";
};

hardeningDisable = [ "pic" ];

nativeBuildInputs = kernel.moduleBuildDependencies;

preConfigure = ''
sed -i 's|depmod|#depmod|' Makefile
'';

makeFlags = [
"TARGET=${kernel.modDirVersion}"
"KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
"MODDESTDIR=${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon"
];

meta = with stdenv.lib; {
description = "Linux HWMON (lmsensors) sensors driver for various ASUS Ryzen and Threadripper motherboards";
homepage = "https://github.com/electrified/asus-wmi-sensors";
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ Frostman ];
broken = versionOlder kernel.version "4.12";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -16328,6 +16328,8 @@ in

it87 = callPackage ../os-specific/linux/it87 {};

asus-wmi-sensors = callPackage ../os-specific/linux/asus-wmi-sensors {};

ena = callPackage ../os-specific/linux/ena {};

v4l2loopback = callPackage ../os-specific/linux/v4l2loopback { };
Expand Down

0 comments on commit a1cc279

Please sign in to comment.