depot/third_party/nixpkgs/pkgs/os-specific/linux/ryzenadj/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

28 lines
773 B
Nix

{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
stdenv.mkDerivation rec {
pname = "ryzenadj";
version = "0.16.0";
src = fetchFromGitHub {
owner = "FlyGoat";
repo = "RyzenAdj";
rev = "v${version}";
sha256 = "sha256-VuIrA5UrRqwUta/mrYd+6F4gh/Z65+zzoTXUlRA8wzA=";
};
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";
mainProgram = "ryzenadj";
homepage = "https://github.com/FlyGoat/RyzenAdj";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ rhendric ];
platforms = [ "x86_64-linux" ];
};
}