nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildHomeAssistantComponent,
5 dirigera,
6}:
7
8buildHomeAssistantComponent rec {
9 owner = "sanjoyg";
10 domain = "dirigera_platform";
11 version = "2.6.8";
12
13 src = fetchFromGitHub {
14 owner = "sanjoyg";
15 repo = "dirigera_platform";
16 rev = version;
17 hash = "sha256-FNcGl6INQlVP+P3qmExWLI1ALh9ZacjJAbNKRtgM3ms=";
18 };
19
20 postPatch = ''
21 substituteInPlace custom_components/dirigera_platform/manifest.json \
22 --replace-fail "0.0.1" "${version}"
23 '';
24
25 dependencies = [ dirigera ];
26
27 ignoreVersionRequirement = [ "dirigera" ];
28
29 meta = {
30 description = "Home-assistant integration for IKEA Dirigera hub";
31 homepage = "https://github.com/sanjoyg/dirigera_platform";
32 maintainers = with lib.maintainers; [ rhoriguchi ];
33 license = lib.licenses.mit;
34 };
35}