Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73814 from alexbakker/zenpower
zenpower: init at 0.1.5
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ stdenv, kernel, fetchFromGitHub }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "zenpower"; | ||
version = "0.1.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ocerman"; | ||
repo = "zenpower"; | ||
rev = "v${version}"; | ||
sha256 = "1ay1q666bc7czgc95invw523c0ds2gj85wxypc3wi418vfaha5vy"; | ||
}; | ||
|
||
hardeningDisable = [ "pic" ]; | ||
|
||
nativeBuildInputs = kernel.moduleBuildDependencies; | ||
|
||
makeFlags = "KERNEL_BUILD=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; | ||
|
||
installPhase = '' | ||
install -D zenpower.ko -t "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon/zenpower/" | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs."; | ||
homepage = "https://github.com/ocerman/zenpower"; | ||
license = licenses.gpl2; | ||
maintainers = with maintainers; [ alexbakker ]; | ||
platforms = platforms.linux; | ||
broken = versionOlder kernel.version "4.14"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters