From bc148507b7c349f7feeabff9041d9d5e9850ce08 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 17 Jan 2026 16:26:17 +0100 Subject: [PATCH] home-assistant-custom-lovelace-modules.atomic-calendar-revive: 10.0.0 -> 10.2.0 https://github.com/totaldebug/atomic-calendar-revive/releases/tag/v10.1.0 https://github.com/totaldebug/atomic-calendar-revive/releases/tag/v10.2.0 --- .../atomic-calendar-revive/package.nix | 34 +++++++++++++------ 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/atomic-calendar-revive/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/atomic-calendar-revive/package.nix index 8f71dcce88bf..e1abe02afce2 100644 --- a/pkgs/servers/home-assistant/custom-lovelace-modules/atomic-calendar-revive/package.nix +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/atomic-calendar-revive/package.nix @@ -1,36 +1,50 @@ { lib, stdenv, - fetchYarnDeps, fetchFromGitHub, - yarnBuildHook, - yarnConfigHook, + fetchPnpmDeps, nodejs, + pnpm_9, + pnpmConfigHook, nix-update-script, }: +let + pnpm = pnpm_9; +in + stdenv.mkDerivation (finalAttrs: { pname = "atomic-calendar-revive"; - version = "10.0.0"; + version = "10.2.0"; src = fetchFromGitHub { owner = "totaldebug"; repo = "atomic-calendar-revive"; tag = "v${finalAttrs.version}"; - hash = "sha256-TaxvxAUcewQH0IMJ0/VjW4+T6squ1tuZIFGn3PE3jhU="; + hash = "sha256-cqtXhBSFuEuh8IH/6S0qZN3+SrdCt0WXrBJlBcDUujY="; }; - offlineCache = fetchYarnDeps { - inherit (finalAttrs) src; - hash = "sha256-d3lk3mwgaWMPFl/EDUWH/tUlAC7OfhNycOLbi1GzkfM="; + pnpmDeps = fetchPnpmDeps { + inherit (finalAttrs) pname version src; + inherit pnpm; + fetcherVersion = 3; + hash = "sha256-fhi1ysI2ygMfPTSiu40tt713fA/dy7r28Xyk0HxSvXE="; }; nativeBuildInputs = [ - yarnConfigHook - yarnBuildHook + pnpmConfigHook + pnpm nodejs ]; + buildPhase = '' + runHook preBuild + + pnpm run build + + runHook postBuild + ''; + installPhase = '' runHook preInstall