From 966c9e8a21e24487dc9fbf065160fa79e0be388f Mon Sep 17 00:00:00 2001 From: Philipp Woelfel Date: Sun, 26 Jan 2025 12:24:00 -0700 Subject: [PATCH] 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 ]; + }; +}