mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
28 lines
743 B
Nix
28 lines
743 B
Nix
{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ryzenadj";
|
|
version = "0.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FlyGoat";
|
|
repo = "RyzenAdj";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tfki+7W2RbqzEHG/Ibton/V5koT89emdQ7aX8WDUzdI=";
|
|
};
|
|
|
|
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; [ asbachb ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|