depot/third_party/nixpkgs/pkgs/by-name/au/auto-epp/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

29 lines
775 B
Nix

{ lib, stdenv, fetchFromGitHub, python3 }:
stdenv.mkDerivation rec {
pname = "auto-epp";
version = "1.2.1";
src = fetchFromGitHub {
owner = "jothi-prasath";
repo = "auto-epp";
rev = "refs/tags/v${version}";
hash = "sha256-7sI8K+7ZAdzBN/XOzYQQZ1f9t+fFo6fcXYzX6abNyQ8=";
};
buildInputs = [ python3 ];
installPhase = ''
runHook preInstall
install -Dm555 auto-epp $out/bin/auto-epp
runHook postInstall
'';
meta = with lib; {
mainProgram = "auto-epp";
homepage = "https://github.com/jothi-prasath/auto-epp";
description = "Auto-epp (energy performance preference) for AMD processors when amd_pstate=active";
platforms = platforms.linux;
license = licenses.mit;
maintainers = [ maintainers.lamarios ];
};
}