6 # See the official readme for a list of optional flags:
7 # https://github.com/cyring/CoreFreq/blob/master/README.md
11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 hash = "sha256-ljo8EDoJmcdfVvC8s+Xbf5TsYruvSOU1OSYBPwQst1c=";
22 nativeBuildInputs = kernel.moduleBuildDependencies;
24 env.NIX_CFLAGS_COMPILE = "-I${src}/${stdenv.hostPlatform.qemuArch}";
26 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
27 "INSTALL_MOD_PATH=$(out)"
34 installFlags = [ "PREFIX=$(out)" ];
37 description = "CPU monitoring and tuning software designed for 64-bit processors";
38 homepage = "https://github.com/cyring/CoreFreq";
39 license = lib.licenses.gpl2Only;
40 maintainers = with lib.maintainers; [ mrene ];
41 mainProgram = "corefreq-cli";