HASS: custom spotify color recognize component
This commit is contained in:
parent
9d0f9260fe
commit
67bb827098
3 changed files with 35 additions and 0 deletions
|
|
@ -184,6 +184,7 @@
|
|||
packages = {
|
||||
inherit
|
||||
(pkgs)
|
||||
hass-color-recognizer
|
||||
keyboard-switch
|
||||
sddm-sugar-dark
|
||||
sddm-theme-clairvoyance
|
||||
|
|
@ -238,6 +239,7 @@
|
|||
wl-clipedit = self.callPackage ./pkgs/wl-clipedit { };
|
||||
wl-lockscreen = self.callPackage ./pkgs/wl-lockscreen { };
|
||||
wl-update-background = self.callPackage ./pkgs/wl-update-background { };
|
||||
hass-color-recognizer = self.callPackage ./pkgs/hass-color-recognizer { };
|
||||
};
|
||||
|
||||
overrides = _self: super: {
|
||||
|
|
|
|||
|
|
@ -323,6 +323,9 @@ in
|
|||
configDir = "/var/lib/hass";
|
||||
configWritable = true;
|
||||
extraPackages = ps: with ps; [ securetar ];
|
||||
customComponents = [
|
||||
pkgs.hass-color-recognizer
|
||||
];
|
||||
extraComponents = [
|
||||
"default_config"
|
||||
|
||||
|
|
|
|||
30
pkgs/hass-color-recognizer/default.nix
Normal file
30
pkgs/hass-color-recognizer/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ fetchFromGitHub, python3Packages, buildHomeAssistantComponent }:
|
||||
|
||||
buildHomeAssistantComponent {
|
||||
owner = "zewelor";
|
||||
domain = "hass-color-recognizer";
|
||||
version = "6e99269";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zewelor";
|
||||
repo = "ha_custom_components";
|
||||
rev = "6e99269";
|
||||
sha256 = "sha256-0Qgtt5gMOUZQphUkI6uYiZ/A8xsXP1eMrVlC+EmjXj8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python3Packages.numpy
|
||||
python3Packages.scipy
|
||||
python3Packages.voluptuous
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "numpy" "scipy" "voluptuous" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
cp -a color_recognizer $out
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue