Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f7afe54cc39f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4186705a70fc
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 27, 2019

  1. zenpower: init at 0.1.5

    alexbakker committed Nov 27, 2019

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    93c5503 View commit details

Commits on Jan 16, 2020

  1. Merge pull request #73814 from alexbakker/zenpower

    zenpower: init at 0.1.5
    marsam authored Jan 16, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    4186705 View commit details
Showing with 34 additions and 0 deletions.
  1. +32 −0 pkgs/os-specific/linux/zenpower/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
32 changes: 32 additions & 0 deletions pkgs/os-specific/linux/zenpower/default.nix
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";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -16553,6 +16553,8 @@ in

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

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

inherit (callPackage ../os-specific/linux/zfs {
configFile = "kernel";
inherit kernel;