mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
fix(hass): HAP src is incorrect
Revert this on next flake update
This commit is contained in:
parent
5d29591002
commit
e9a2a8e9e6
1 changed files with 13 additions and 1 deletions
|
|
@ -202,7 +202,19 @@ in {
|
|||
then true
|
||||
else warn "pyasn1 pin likely no longer needed" false;
|
||||
pyasn1prefix = "${python.pkgs.pysnmp-pyasn1}/${python.sitePackages}";
|
||||
in pkgs.home-assistant.overrideAttrs (old: {
|
||||
home-assistant = pkgs.home-assistant.override {
|
||||
packageOverrides = self: super: {
|
||||
hap-python = super.hap-python.overrideAttrs (old: {
|
||||
src = if old.version == "4.7.0" then pkgs.fetchFromGitHub {
|
||||
owner = "ikalchev";
|
||||
repo = "HAP-python";
|
||||
rev = "refs/tags/${old.version}";
|
||||
hash = "sha256-/UBJh1m+WscN9I85/kvlNQnowNybEDyGVuQk4HBDWLE=";
|
||||
} else lib.warn "HAP-python updated, remove hack!" old.rsc;
|
||||
});
|
||||
};
|
||||
};
|
||||
in home-assistant.overrideAttrs (old: {
|
||||
makeWrapperArgs = old.makeWrapperArgs ++ lib.optional (hasBrother && needsPyasn1pin) "--prefix PYTHONPATH : ${pyasn1prefix}";
|
||||
});
|
||||
extraPackages = python3Packages:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue