xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / by-name / au / auto-epp / package.nix
blob07e06ba5b4b940c4a17eee868d0f2e43c1ab320e
1 { lib, stdenv, fetchFromGitHub, python3 }:
2 stdenv.mkDerivation rec {
3   pname = "auto-epp";
4   version = "1.2.1";
6   src = fetchFromGitHub {
7     owner = "jothi-prasath";
8     repo = "auto-epp";
9     rev = "refs/tags/v${version}";
10     hash = "sha256-7sI8K+7ZAdzBN/XOzYQQZ1f9t+fFo6fcXYzX6abNyQ8=";
11   };
13   buildInputs = [ python3 ];
15   installPhase = ''
16     runHook preInstall
17     install -Dm555 auto-epp $out/bin/auto-epp
18     runHook postInstall
19   '';
21   meta = with lib; {
22     mainProgram = "auto-epp";
23     homepage = "https://github.com/jothi-prasath/auto-epp";
24     description = "Auto-epp (energy performance preference) for AMD processors when amd_pstate=active";
25     platforms = platforms.linux;
26     license = licenses.mit;
27     maintainers = [ maintainers.lamarios ];
28   };