From 5e6a566c696a03df6fb623bc3fcf06c3704f5806 Mon Sep 17 00:00:00 2001 From: Philipp Woelfel Date: Sun, 26 Jan 2025 12:11:19 -0700 Subject: [PATCH 1/2] home-assistant-custom-components.versatile_thermostat: init at 7.1.5 --- .../versatile_thermostat/package.nix | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/versatile_thermostat/package.nix diff --git a/pkgs/servers/home-assistant/custom-components/versatile_thermostat/package.nix b/pkgs/servers/home-assistant/custom-components/versatile_thermostat/package.nix new file mode 100644 index 000000000000..8c124a29aee6 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/versatile_thermostat/package.nix @@ -0,0 +1,29 @@ +{ + buildHomeAssistantComponent, + fetchFromGitHub, + lib, + gitUpdater, +}: + +buildHomeAssistantComponent rec { + owner = "jmcollin78"; + domain = "versatile_thermostat"; + version = "7.1.5"; + + src = fetchFromGitHub { + inherit owner; + repo = domain; + rev = "refs/tags/${version}"; + hash = "sha256-XCDWByw/2xUjub/fNGvpIGzDyn3rq+JMI7syI1oPus0="; + }; + + passthru.updateScript = gitUpdater { ignoredVersions = "(Alpha|Beta|alpha|beta).*"; }; + + meta = { + changelog = "https://github.com/jmcollin78/versatile_thermostat/releases/tag/${version}"; + description = "A full-featured thermostat"; + homepage = "https://github.com/jmcollin78/versatile_thermostat"; + maintainers = with lib.maintainers; [ pwoelfel ]; + license = lib.licenses.mit; + }; +} From 966c9e8a21e24487dc9fbf065160fa79e0be388f Mon Sep 17 00:00:00 2001 From: Philipp Woelfel Date: Sun, 26 Jan 2025 12:24:00 -0700 Subject: [PATCH 2/2] home-assistant-custom-lovelace-modules.versatile-thermostat-ui-card: init at 1.1.2 --- .../versatile-thermostat-ui-card/package.nix | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-lovelace-modules/versatile-thermostat-ui-card/package.nix diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/versatile-thermostat-ui-card/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/versatile-thermostat-ui-card/package.nix new file mode 100644 index 000000000000..1d3d7c75aad8 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/versatile-thermostat-ui-card/package.nix @@ -0,0 +1,37 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage rec { + pname = "versatile-thermostat-ui-card"; + version = "1.1.2"; + + src = fetchFromGitHub { + owner = "jmcollin78"; + repo = "versatile-thermostat-ui-card"; + rev = "${version}"; + hash = "sha256-JOm0jQysBtKHjAXtWnjbEn7UPSNLHd95TGfP13WH0Ww="; + }; + + npmFlags = [ "--legacy-peer-deps" ]; + npmDepsHash = "sha256-TlJGO0kw3+8ukT1DERp/xDwmeSu0ofP5mqrmXmGcF2M="; + + installPhase = '' + runHook preInstall + + mkdir $out + install -m0644 dist/versatile-thermostat-ui-card.js $out + + runHook postInstall + ''; + + meta = with lib; { + changelog = "https://github.com/jmcollin78/versatile-thermostat-ui-card/releases/tag/${version}"; + description = "Home Assistant card for the Versatile Thermostat integration."; + homepage = "https://github.com/jmcollin78/versatile-thermostat-ui-card"; + license = licenses.mit; + maintainers = with maintainers; [ pwoelfel ]; + }; +}