summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/HermesLedControl/default.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-07-28 22:24:15 +0200
committermakefu <github@syntax-fehler.de>2023-07-28 22:24:15 +0200
commit060a8f28fa1fc648bdf66afb31a5d1efac868837 (patch)
tree2b354eacc7897365ee45244fe7a51720e0d0333f /makefu/5pkgs/HermesLedControl/default.nix
parentcbfcc890e3b76d942b927809bf981a5fa7289e6a (diff)
makefu: move out to own repo, add vacation-note
Diffstat (limited to 'makefu/5pkgs/HermesLedControl/default.nix')
-rw-r--r--makefu/5pkgs/HermesLedControl/default.nix58
1 files changed, 0 insertions, 58 deletions
diff --git a/makefu/5pkgs/HermesLedControl/default.nix b/makefu/5pkgs/HermesLedControl/default.nix
deleted file mode 100644
index 77164f568..000000000
--- a/makefu/5pkgs/HermesLedControl/default.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{ lib, pkgs, python3Packages, makeWrapper, ... }:
-
-# How to use:
-# create configuration configuration.yml:
-# engine: "rhasspy"
-# pathToConfig: "/var/lib/rhasspy/de/profile.json"
-# hardware: "respeaker4MicArray"
-# pattern: "fake-name"
-# enableDoA: false
-# and run HermesLedControl --hermesLedControlConfig path-to-config.yml
-
-# all available config options can be see in:
-# result/result/lib/HermesLedControl/models/Configuration.py
-
-
-with python3Packages; buildPythonApplication rec {
- name = "HermesLedControl-${version}";
- format = "other";
- version = "3.0.4";
-
- src = pkgs.fetchFromGitHub {
- owner = "project-alice-assistant";
- repo = "HermesLedControl";
- rev = "v${version}";
- hash = "sha256-fVbTQPSo3fNjLb8PDDDqhMC9Hez01rTH46cKz/mfwoU=";
- };
-
- patches = [
- ./remove-logger.patch
- ];
-
- execWrapper = ''
- #!/bin/sh
- cd $out/lib/HermesLedControl && \
- PYTHONPATH="${makePythonPath propagatedBuildInputs}" exec \
- ${python}/bin/python "$out/lib/HermesLedControl/main.py" "$@"
- '';
-
- installPhase = ''
- install -d "$out/lib/"
- install -d "$out/bin"
- cp -r . $out/lib/HermesLedControl
-
- echo "${execWrapper}" > HermesLedControl
- install -Dm755 HermesLedControl $out/bin/HermesLedControl
-
- '';
-
- propagatedBuildInputs = [
- spidev gpiozero rpi-gpio pyyaml paho-mqtt types-pyyaml makeWrapper
- ];
-
- meta = {
- homepage = "https://github.com/project-alice-assistant/HermesLedControl";
- description = "Provides an easy way to control your leds in an Hermes environment";
- license = lib.licenses.gpl3;
- };
-}