nixpkgs/pkgs/os-specific/linux/amdctl/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

34 lines
688 B
Nix

{ 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";
mainProgram = "amdctl";
homepage = "https://github.com/kevinlekiller/amdctl";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = [ "x86_64-linux" ];
};
}