From f8e9bffcfebced914c464b77843fabdd841b7c78 Mon Sep 17 00:00:00 2001 From: Paul Fauchon Date: Wed, 29 Nov 2023 14:28:04 +0800 Subject: [PATCH] auto-epp: init at 1.2.1 --- pkgs/by-name/au/auto-epp/package.nix | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/au/auto-epp/package.nix diff --git a/pkgs/by-name/au/auto-epp/package.nix b/pkgs/by-name/au/auto-epp/package.nix new file mode 100644 index 000000000000..07e06ba5b4b9 --- /dev/null +++ b/pkgs/by-name/au/auto-epp/package.nix @@ -0,0 +1,29 @@ +{ 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 ]; + }; +}