1{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
2stdenv.mkDerivation rec {
3 pname = "ryzenadj";
4 version = "0.13.0";
5
6 src = fetchFromGitHub {
7 owner = "FlyGoat";
8 repo = "RyzenAdj";
9 rev = "v${version}";
10 sha256 = "sha256-n/LHFv14aDLbobeamOgDYBml1DgSGJmfmg/qff78i4c=";
11 };
12
13 nativeBuildInputs = [ pciutils cmake ];
14
15 installPhase = ''
16 install -D libryzenadj.so $out/lib/libryzenadj.so
17 install -D ryzenadj $out/bin/ryzenadj
18 '';
19
20 meta = with lib; {
21 description = "Adjust power management settings for Ryzen Mobile Processors.";
22 homepage = "https://github.com/FlyGoat/RyzenAdj";
23 license = licenses.lgpl3Only;
24 maintainers = with maintainers; [ ];
25 platforms = [ "x86_64-linux" ];
26 };
27}