mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
28 lines
773 B
Nix
28 lines
773 B
Nix
{ lib, stdenv, fetchFromGitHub, pciutils, cmake }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ryzenadj";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FlyGoat";
|
|
repo = "RyzenAdj";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-aNkVP1fuPcb41Qk5YI1loJnqVmamSzoMFyTGkJtrnvg=";
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|