about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/amdctl/default.nix
blob: d0a15578857ce340cf3cc6ad21d52252a10ddfdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ 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; {
    description = "Set P-State voltages and clock speeds on recent AMD CPUs on Linux.";
    homepage = "https://github.com/kevinlekiller/amdctl";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ ];
    platforms = [ "x86_64-linux" ];
  };
}