nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 792 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6}: 7stdenv.mkDerivation (finalAttrs: { 8 pname = "auto-epp"; 9 version = "1.2.1"; 10 11 src = fetchFromGitHub { 12 owner = "jothi-prasath"; 13 repo = "auto-epp"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-7sI8K+7ZAdzBN/XOzYQQZ1f9t+fFo6fcXYzX6abNyQ8="; 16 }; 17 18 buildInputs = [ python3 ]; 19 20 installPhase = '' 21 runHook preInstall 22 install -Dm555 auto-epp $out/bin/auto-epp 23 runHook postInstall 24 ''; 25 26 meta = { 27 mainProgram = "auto-epp"; 28 homepage = "https://github.com/jothi-prasath/auto-epp"; 29 description = "Energy performance preference tuner for AMD processors when amd_pstate=active"; 30 platforms = lib.platforms.linux; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.lamarios ]; 33 }; 34})