From 0e8c4663aa40b2ff2ffb2b01936400c48f8bd628 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Fri, 20 Sep 2024 13:39:48 -0700 Subject: [PATCH] intel-undervolt: init at 1.7 --- pkgs/by-name/in/intel-undervolt/package.nix | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/in/intel-undervolt/package.nix diff --git a/pkgs/by-name/in/intel-undervolt/package.nix b/pkgs/by-name/in/intel-undervolt/package.nix new file mode 100644 index 000000000000..317a1b45d209 --- /dev/null +++ b/pkgs/by-name/in/intel-undervolt/package.nix @@ -0,0 +1,35 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "intel-undervolt"; + version = "1.7"; + + src = fetchFromGitHub { + owner = "kitsunyan"; + repo = "intel-undervolt"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-BxTNqXC+vG24/y8yZ/h1Ep4F8MwVdjsr5uo/BjuWULo="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + cp intel-undervolt $out/bin + + runHook postInstall + ''; + + meta = { + description = "Intel CPU undervolting and throttling configuration tool"; + homepage = "https://github.com/kitsunyan/intel-undervolt"; + mainProgram = "intel-undervolt"; + license = lib.licenses.gpl3; + platforms = [ "x86_64-linux" ]; # It probably compiles for aaarch64-linux too, but what's the point? + maintainers = with lib.maintainers; [ pandapip1 ]; + }; +})