afancontrol: init at 3.1.0
This commit is contained in:
parent
ff4ce742bf
commit
d907a41518
27
afancontrol/default.nix
Normal file
27
afancontrol/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, click, pytestCheckHook, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "afancontrol";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-FAOZWoSi7IgONtNspUxR4h5FnkkrNrE0N861t5LHpGw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click ];
|
||||
checkInputs = [ pytestCheckHook requests ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/etc/systemd/system/afancontrol.service \
|
||||
--replace "/usr/bin/afancontrol" "$out/bin/afancontrol"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Advanced Fan Control program, which controls PWM fans according to the current temperatures of the system components";
|
||||
homepage = "https://afancontrol.readthedocs.io/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ sbruder ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -15,6 +15,8 @@ in
|
|||
};
|
||||
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
|
||||
|
||||
afancontrol = callPythonPackage ./afancontrol { };
|
||||
|
||||
colorchord2 = callPackage ./colorchord2 { };
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue