btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / un / undervolt / package.nix
blob045667c3e3a444c7541193234962bff3ffe676f1
1 { lib, fetchFromGitHub, python3Packages }:
3 python3Packages.buildPythonApplication rec {
4   version = "0.4.0";
5   pname = "undervolt";
7   src = fetchFromGitHub {
8     owner = "georgewhewell";
9     repo = "undervolt";
10     rev = version;
11     hash = "sha256-G+CK/lnZXkQdyNZPqY9P3owVJsd22H3K8wSpjHFG0ow=";
12   };
14   meta = with lib; {
15     homepage = "https://github.com/georgewhewell/undervolt/";
16     description = "Program for undervolting Intel CPUs on Linux";
17     mainProgram = "undervolt";
19     longDescription = ''
20       Undervolt is a program for undervolting Intel CPUs under Linux. It works in a similar
21       manner to the Windows program ThrottleStop (i.e, MSR 0x150). You can apply a fixed
22       voltage offset to one of 5 voltage planes, and override your systems temperature
23       target (CPU will throttle when this temperature is reached).
24     '';
25     license = licenses.gpl2Only;
26     platforms = [ "x86_64-linux" ];
27   };