Skip to content

Commit

Permalink
intel-lpmd: init at 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontear committed Oct 17, 2024
1 parent e71ae2a commit c5940b2
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/by-name/in/intel-lpmd/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
lib,
stdenv,
fetchFromGitHub,

autoreconfHook,
pkg-config,

glib,
gtk-doc,
libnl,
libxml2,
systemd,
upower,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "intel-lpmd";
version = "0.0.8";

src = fetchFromGitHub {
owner = "intel";
repo = "intel-lpmd";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-Af8H+hX9S7+AlFxFvClsRgEgt+bYqy9T+IWUkbUPVEw=";
};

nativeBuildInputs = [
autoreconfHook
pkg-config

glib
gtk-doc
libnl
libxml2
systemd
upower
];

configureFlags = [
''--with-dbus-sys-dir="${placeholder "out"}/etc/dbus-1"''
''--with-systemdsystemunitdir="${placeholder "out"}/lib/systemd/system"''
];

meta = with lib; {
homepage = "https://github.com/intel/intel-lpmd";
description = "Linux daemon used to optimize active idle power.";
longDescription = ''
Intel Low Power Model Daemon is a Linux daemon used to optimize active
idle power. It selects a set of most power efficient CPUs based on
configuration file or CPU topology. Based on system utilization and other
hints, it puts the system into Low Power Mode by activate the power
efficient CPUs and disable the rest, and restore the system from Low Power
Mode by activating all CPUs.
'';

platform = platforms.linux;
license = licenses.gpl2Only;
maintainers = with maintainers; [ frontear ];

mainProgram = "intel_lpmd";
};
})

0 comments on commit c5940b2

Please sign in to comment.