diff --git a/afancontrol/default.nix b/afancontrol/default.nix new file mode 100644 index 0000000..dcfd5b0 --- /dev/null +++ b/afancontrol/default.nix @@ -0,0 +1,22 @@ +{ 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 ]; + + 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; + }; +} diff --git a/default.nix b/default.nix index 2c370b4..fa932c0 100644 --- a/default.nix +++ b/default.nix @@ -15,6 +15,8 @@ in }; python3Packages = prev.recurseIntoAttrs final.python3.pkgs; + afancontrol = callPythonPackage ./afancontrol { }; + colorchord2 = callPackage ./colorchord2 { }; diff --git a/flake.nix b/flake.nix index 852bfc9..f727fae 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,7 @@ (flake-utils.lib.flattenTree { inherit (pkgs) VisiCut + afancontrol colorchord2 fSpy face_morpher