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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
744 B
Nix
Raw Normal View History

2021-06-04 16:51:57 +00:00
{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
stdenv.mkDerivation rec {
pname = "ryzenadj";
2023-10-19 04:09:59 +00:00
version = "0.14.0";
2021-06-04 16:51:57 +00:00
src = fetchFromGitHub {
owner = "FlyGoat";
repo = "RyzenAdj";
rev = "v${version}";
2023-10-19 04:09:59 +00:00
sha256 = "sha256-Lqq4LNRmqQyeIJfr/+tYdKMEk+P54VnwZAQZcE0ev8Y=";
2021-06-04 16:51:57 +00: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;
2023-10-19 22:36:39 +00:00
maintainers = with maintainers; [ rhendric ];
2021-06-04 16:51:57 +00:00
platforms = [ "x86_64-linux" ];
};
}