depot/third_party/nixpkgs/pkgs/os-specific/linux/ryzenadj/default.nix
Default email eaf6957cd3 Project import generated by Copybara.
GitOrigin-RevId: 4bb072f0a8b267613c127684e099a70e1f6ff106
2023-03-27 12:17:25 -07:00

27 lines
735 B
Nix

{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
stdenv.mkDerivation rec {
pname = "ryzenadj";
version = "0.13.0";
src = fetchFromGitHub {
owner = "FlyGoat";
repo = "RyzenAdj";
rev = "v${version}";
sha256 = "sha256-n/LHFv14aDLbobeamOgDYBml1DgSGJmfmg/qff78i4c=";
};
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; [ ];
platforms = [ "x86_64-linux" ];
};
}