From d0da32a4b285d85bd5ac7afac176a79a58269dd2 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Thu, 6 Apr 2023 20:49:06 +0100 Subject: [PATCH] amdctl: init at 0.11 --- pkgs/os-specific/linux/amdctl/default.nix | 32 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/os-specific/linux/amdctl/default.nix diff --git a/pkgs/os-specific/linux/amdctl/default.nix b/pkgs/os-specific/linux/amdctl/default.nix new file mode 100644 index 000000000000..1fcd8fc93402 --- /dev/null +++ b/pkgs/os-specific/linux/amdctl/default.nix @@ -0,0 +1,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; [ thiagokokada ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ad00d549216..236aead085e0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -38097,6 +38097,8 @@ with pkgs; alpnpass = callPackage ../applications/networking/alpnpass { }; + amdctl = callPackage ../os-specific/linux/amdctl { }; + android-file-transfer = libsForQt5.callPackage ../tools/filesystems/android-file-transfer { }; antimicrox = libsForQt5.callPackage ../tools/misc/antimicrox { };