1
0
Fork 0
packages/pkgs/ryzenadj/default.nix

26 lines
664 B
Nix
Raw 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";
version = "0.8.1";
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}";
sha256 = "sha256-1saFfS7jNGxA0YIpOBYekt7WC3gZ5CoDngh0nbdSFp4=";
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" ];
};
}