2023-04-06 19:49:06 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "amdctl";
|
|
|
|
version = "0.11";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kevinlekiller";
|
|
|
|
repo = "amdctl";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-2wBk/9aAD7ARMGbcVxk+CzEvUf8U4RS4ZwTCj8cHNNo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 amdctl $out/bin/amdctl
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-07 07:40:42 +00:00
|
|
|
description = "Set P-State voltages and clock speeds on recent AMD CPUs on Linux";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "amdctl";
|
2023-04-06 19:49:06 +00:00
|
|
|
homepage = "https://github.com/kevinlekiller/amdctl";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-01-07 21:45:02 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-04-06 19:49:06 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|