1{ lib
2, stdenv
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation rec {
7 pname = "amdctl";
8 version = "0.11";
9
10 src = fetchFromGitHub {
11 owner = "kevinlekiller";
12 repo = "amdctl";
13 rev = "v${version}";
14 hash = "sha256-2wBk/9aAD7ARMGbcVxk+CzEvUf8U4RS4ZwTCj8cHNNo=";
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -Dm755 amdctl $out/bin/amdctl
21
22 runHook postInstall
23 '';
24
25 meta = with lib; {
26 description = "Set P-State voltages and clock speeds on recent AMD CPUs on Linux.";
27 homepage = "https://github.com/kevinlekiller/amdctl";
28 license = licenses.gpl3Plus;
29 maintainers = with maintainers; [ thiagokokada ];
30 platforms = [ "x86_64-linux" ];
31 };
32}