← Back to context

Comment by siraben

5 years ago

Nixpkgs contributor here. One of the misunderstandings by frenck is how Nix operates[0], which is not via mutable site-packages folders but more accurately as an immutable graph structure. What this means is that to have home-assistant packaged properly, we need to also package its dependencies, which includes ambee.

The argument that "In that case you are shipping an broken Home Assistant version."[1] is incorrect, since we also enable tests[2], when possible, on Python packages to ensure they are packaged correctly.

[0] https://github.com/NixOS/nixpkgs/pull/126326#issuecomment-86...

[1] https://github.com/NixOS/nixpkgs/pull/126326#issuecomment-86...

[2] https://github.com/NixOS/nixpkgs/blob/821b34edaf9911481ad4dd...

Isn't the argument that HA has this functionality, thus if it cannot download its plugins/manifests at runtime, then it can be considered not fully functional? (Even though Nix users likely consciously trade off that for reproducibility.)

  • > Even though Nix users likely consciously trade off that for reproducibility.

    Even if home-assistant would download the files at runtime it can't put them at the right location and it would only work for python only packages.