From 21d2f1942c4e135570fd3ef56243d4eebc38b563 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 7 Jul 2019 14:38:01 +0200 Subject: octoprint-plugins.psucontrol: init at 0.1.8 --- pkgs/applications/misc/octoprint/plugins.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'pkgs/applications/misc') diff --git a/pkgs/applications/misc/octoprint/plugins.nix b/pkgs/applications/misc/octoprint/plugins.nix index 8ab2f9f90cf6..0ff40963529e 100644 --- a/pkgs/applications/misc/octoprint/plugins.nix +++ b/pkgs/applications/misc/octoprint/plugins.nix @@ -142,6 +142,30 @@ let }; }; + psucontrol = buildPlugin rec { + pname = "PSUControl"; + version = "0.1.8"; + + src = fetchFromGitHub { + owner = "kantlivelong"; + repo = "OctoPrint-${pname}"; + rev = version; + sha256 = "0aj38d7b7d5pzmzq841pip18cpg18wy2vrxq2nd13875597y54b8"; + }; + + preConfigure = '' + # optional; RPi.GPIO is broken on vanilla kernels + sed /RPi.GPIO/d -i requirements.txt + ''; + + meta = with stdenv.lib; { + description = "OctoPrint plugin to control ATX/AUX power supply"; + homepage = "https://github.com/kantlivelong/OctoPrint-PSUControl"; + license = licenses.agpl3; + maintainers = with maintainers; [ gebner ]; + }; + }; + }; in self -- cgit 1.4.1