Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
840 B
Nix
43 lines
840 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pciutils,
|
|
cmake,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ryzenadj";
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FlyGoat";
|
|
repo = "RyzenAdj";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-28ld8htm3DewTSV3WTG4dFOcX4JAEUMK9rq4AAm1/zY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
pciutils
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
installPhase = ''
|
|
install -D libryzenadj.so $out/lib/libryzenadj.so
|
|
install -D ryzenadj $out/bin/ryzenadj
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Adjust power management settings for Ryzen Mobile Processors";
|
|
mainProgram = "ryzenadj";
|
|
homepage = "https://github.com/FlyGoat/RyzenAdj";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ rhendric ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|