packages/pkgs/ryzenadj/default.nix

26 lines
664 B
Nix
Raw Permalink Normal View History

2021-03-18 22:42:40 +01:00
{ stdenv, lib, fetchFromGitHub, cmake, pciutils, ... }:
2021-05-11 00:33:25 +02:00
stdenv.mkDerivation rec {
pname = "ryzenadj";
2021-05-17 00:54:52 +02:00
version = "0.8.2";
2021-03-18 22:42:40 +01:00
src = fetchFromGitHub {
owner = "FlyGoat";
2021-05-11 00:33:25 +02:00
repo = pname;
rev = "v${version}";
2021-05-17 00:54:52 +02:00
sha256 = "sha256-jRrIhKlejX0Yt1wkF/MBJk/6DAIGWWRK9oReCplNVKA=";
2021-03-18 22:42:40 +01:00
};
nativeBuildInputs = [ cmake pciutils ];
installPhase = ''
install -D -m0755 ryzenadj $out/bin/ryzenadj
'';
meta = with lib; {
description = "Adjust power management settings for Ryzen mobile processors";
homepage = src.meta.homepage;
license = licenses.lgpl3;
maintainers = with maintainers; [ aw ];
platforms = [ "x86_64-linux" ];
};
}