10 kernelDirectory = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
14 version = "0-unstable-2024-10-10";
16 src = fetchFromGitHub {
17 owner = "BoukeHaarsma23";
19 rev = "7c4e83d5e2f887f4c31edaf92e5f94e9448e9764";
20 hash = "sha256-5fYelEr4IYnuXrly15IcyicFrF0tYjs7OBqIhUYQXZ0=";
23 nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
30 makeFlags = kernel.makeFlags ++ [ "KDIR=${kernelDirectory}" ];
32 installTargets = [ "modules_install" ];
35 substituteInPlace Makefile --replace-fail "PWD modules_install" "PWD INSTALL_MOD_PATH=$out modules_install"
39 description = "Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely.";
40 homepage = "https://github.com/BoukeHaarsma23/zenergy";
41 license = licenses.gpl2Only;
42 maintainers = with maintainers; [ wizardlink ];
43 platforms = platforms.linux;