home-assistant-custom-lovelace-modules.horizon-card: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-05-09 11:15:27 +03:00
committed by K900
parent e874654206
commit 50d89dd6c1
2 changed files with 28 additions and 2 deletions
@@ -16,14 +16,20 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-z2cJ6BIhNnzUo9nIFxVyrPBVWSKf35fyLXK72pE8TJw=";
};
patches = [
# Remove after upstream updates to Yarn 4.14
# https://github.com/rejuvenate/lovelace-horizon-card/blob/main/package.json#L4
./yarn-4.14-support.patch
];
nativeBuildInputs = [
yarn-berry
yarn-berry.yarnBerryConfigHook
];
offlineCache = yarn-berry.fetchYarnBerryDeps {
inherit (finalAttrs) src;
hash = "sha256-LYPHBnDRcGeXo2btx1A4/e7fr7MYg/2G5GkuG/xDG+I=";
inherit (finalAttrs) src patches;
hash = "sha256-KWbXvivHxoV4xQuY2m/wpajjIZcypeh6nuvRVnrtFM0=";
};
buildPhase = ''
@@ -0,0 +1,20 @@
diff --git a/.yarnrc.yml b/.yarnrc.yml
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1,2 +1,5 @@
nodeLinker: node-modules
nmMode: hardlinks-local
+approvedGitRepositories:
+ - "**"
+enableScripts: true
diff --git a/yarn.lock b/yarn.lock
--- a/yarn.lock
+++ b/yarn.lock
@@ -2,6 +2,6 @@
# Manual changes might be lost - proceed with caution!
__metadata:
- version: 8
+ version: 9
cacheKey: 10c0