diff options
author | Alexander Bakker <ab@alexbakker.me> | 2019-11-20 14:11:35 +0100 |
---|---|---|
committer | Alexander Bakker <ab@alexbakker.me> | 2019-11-27 19:54:25 +0100 |
commit | 93c5503c2e3fbfba815806afea20828fd6540d54 (patch) | |
tree | 6b4b1d17a8d179111b66eecf79770177835ed65f /pkgs/os-specific/linux/zenpower | |
parent | 39ecc2db19b2687380c8a6ab3aca97eb4c976e17 (diff) |
zenpower: init at 0.1.5
Diffstat (limited to 'pkgs/os-specific/linux/zenpower')
-rw-r--r-- | pkgs/os-specific/linux/zenpower/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/zenpower/default.nix b/pkgs/os-specific/linux/zenpower/default.nix new file mode 100644 index 0000000000000..8fdf7f23cf83b --- /dev/null +++ b/pkgs/os-specific/linux/zenpower/default.nix @@ -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"; + }; +} |