nixpkgs/pkgs/os-specific/linux/ryzenadj/default.nix

28 lines
742 B
Nix
Raw Normal View History

2021-06-04 18:51:57 +02:00
{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
stdenv.mkDerivation rec {
pname = "ryzenadj";
2022-02-20 03:06:48 +01:00
version = "0.9.0";
2021-06-04 18:51:57 +02:00
src = fetchFromGitHub {
owner = "FlyGoat";
repo = "RyzenAdj";
rev = "v${version}";
2022-02-20 03:06:48 +01:00
sha256 = "sha256-RoKRqqIVY9zjyXzGxHo+J4OV7cKc7CkqsdbpreB7EHc=";
2021-06-04 18:51:57 +02:00
};
nativeBuildInputs = [ pciutils cmake ];
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.";
homepage = "https://github.com/FlyGoat/RyzenAdj";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ asbachb ];
platforms = [ "x86_64-linux" ];
};
}