hass
This commit is contained in:
@@ -12,7 +12,7 @@ in
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services = {
|
services = {
|
||||||
music-assistant = {
|
music-assistant = {
|
||||||
enable = true;
|
enable = false;
|
||||||
providers = [
|
providers = [
|
||||||
# "airplay" # music-assistant: airplay support is missing libraop, a library we will not package because it depends on OpenSSL 1.1.
|
# "airplay" # music-assistant: airplay support is missing libraop, a library we will not package because it depends on OpenSSL 1.1.
|
||||||
"apple_music"
|
"apple_music"
|
||||||
|
|||||||
15
overlays/homeassistant/default.nix
Normal file
15
overlays/homeassistant/default.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ ... }:
|
||||||
|
final: prev: {
|
||||||
|
home-assistant = prev.home-assistant.override {
|
||||||
|
packageOverrides = _self: super: {
|
||||||
|
psnawp = super.psnawp.overridePythonAttrs (old: {
|
||||||
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ super.pythonRelaxDepsHook ];
|
||||||
|
pythonRelaxDeps = [ "pycountry" ];
|
||||||
|
});
|
||||||
|
radios = super.radios.overridePythonAttrs (old: {
|
||||||
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ super.pythonRelaxDepsHook ];
|
||||||
|
pythonRelaxDeps = [ "pycountry" ];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -6,10 +6,6 @@ final: prev: {
|
|||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pyPrev.pythonRelaxDepsHook ];
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pyPrev.pythonRelaxDepsHook ];
|
||||||
pythonRelaxDeps = [ "pycountry" ];
|
pythonRelaxDeps = [ "pycountry" ];
|
||||||
});
|
});
|
||||||
psnawp = pyPrev.psnawp.overridePythonAttrs (old: {
|
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pyPrev.pythonRelaxDepsHook ];
|
|
||||||
pythonRelaxDeps = [ "pycountry" ];
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
python3Packages = final.python3.pkgs;
|
python3Packages = final.python3.pkgs;
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
buildHomeAssistantComponent rec {
|
buildHomeAssistantComponent rec {
|
||||||
owner = "greghesp";
|
owner = "greghesp";
|
||||||
domain = "bambu_lab";
|
domain = "bambu_lab";
|
||||||
version = "v2.2.20";
|
version = "v2.2.21";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = owner;
|
owner = owner;
|
||||||
repo = "ha-bambulab";
|
repo = "ha-bambulab";
|
||||||
rev = version;
|
tag = version;
|
||||||
hash = "sha256-lKKfPWWcri2OUM9nkdY2iltvIaoFhnUP4HGBGDUnEww=";
|
hash = "sha256-56aAJAsmn+PzLZijFQ9DbTfHSrbeNk+OM/ibu32UHtg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with home-assistant.python.pkgs; [
|
nativeBuildInputs = with home-assistant.python.pkgs; [
|
||||||
|
|||||||
@@ -18,13 +18,15 @@ buildHomeAssistantComponent rec {
|
|||||||
hash = "sha256-7c2GfTagNsIsSiT/sCqSV+BZZJMcvlsecDD+ZDZx9BA=";
|
hash = "sha256-7c2GfTagNsIsSiT/sCqSV+BZZJMcvlsecDD+ZDZx9BA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs =
|
# gehomesdk and magicattr must be built against HA's Python
|
||||||
with home-assistant.python.pkgs;
|
dependencies = with pkgs.${namespace}; [
|
||||||
[
|
gehomesdk
|
||||||
gehomesdk
|
magicattr
|
||||||
slixmpp
|
];
|
||||||
]
|
|
||||||
++ [ pkgs.${namespace}.magicattr ];
|
nativeBuildInputs = with home-assistant.python.pkgs; [
|
||||||
|
slixmpp
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/simbaja/ha_gehome/releases/tag/${version}";
|
changelog = "https://github.com/simbaja/ha_gehome/releases/tag/${version}";
|
||||||
|
|||||||
@@ -7,21 +7,26 @@
|
|||||||
buildHomeAssistantComponent rec {
|
buildHomeAssistantComponent rec {
|
||||||
owner = "moralmunky";
|
owner = "moralmunky";
|
||||||
domain = "mail_and_packages";
|
domain = "mail_and_packages";
|
||||||
version = "0.4.7";
|
version = "0.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = owner;
|
owner = owner;
|
||||||
repo = "Home-Assistant-Mail-And-Packages";
|
repo = "Home-Assistant-Mail-And-Packages";
|
||||||
rev = version;
|
tag = version;
|
||||||
hash = "sha256-w+7cC/jV+6bQM1aEPlO90Z1o9CcjmPvjNDSG9CduFFw=";
|
hash = "sha256-Am3EYkSYCQuYJmm6xdUwCa0h/ldk4hwTxRTxc0BU2j8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with home-assistant.python.pkgs; [
|
nativeBuildInputs = with home-assistant.python.pkgs; [
|
||||||
|
aioimaplib
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
dateparser
|
dateparser
|
||||||
pillow
|
pillow
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with home-assistant.python.pkgs; [
|
||||||
|
aioimaplib
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace custom_components/mail_and_packages/const.py \
|
substituteInPlace custom_components/mail_and_packages/const.py \
|
||||||
--replace-fail 'DEFAULT_PATH = "custom_components/mail_and_packages/images/"' \
|
--replace-fail 'DEFAULT_PATH = "custom_components/mail_and_packages/images/"' \
|
||||||
|
|||||||
@@ -1,23 +1,21 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
python3Packages,
|
home-assistant,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonPackage rec {
|
home-assistant.python.pkgs.buildPythonPackage rec {
|
||||||
pname = "gehomesdk";
|
pname = "gehomesdk";
|
||||||
version = "2026.2.0";
|
version = "2026.2.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = python3Packages.pythonOlder "3.9";
|
src = home-assistant.python.pkgs.fetchPypi {
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-+BWGkUDKd+9QGbdXuLjmJxLm1xUv0dpIRlPlDkUJ25w=";
|
hash = "sha256-+BWGkUDKd+9QGbdXuLjmJxLm1xUv0dpIRlPlDkUJ25w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = with python3Packages; [ setuptools ];
|
build-system = with home-assistant.python.pkgs; [ setuptools ];
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
dependencies = with home-assistant.python.pkgs; [
|
||||||
aiohttp
|
aiohttp
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
bidict
|
bidict
|
||||||
|
|||||||
Reference in New Issue
Block a user