mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
34 lines
706 B
Nix
34 lines
706 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 = with maintainers; [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|