home-assistant-custom-lovelace-modules.sonos-card: init at 10.6.1; home-assistant-custom-components.mass-queue: init at 0.10.1 (#508814)

This commit is contained in:
Sandro
2026-05-08 14:13:13 +00:00
committed by GitHub
2 changed files with 77 additions and 0 deletions
@@ -0,0 +1,34 @@
{
lib,
fetchFromGitHub,
buildHomeAssistantComponent,
music-assistant-client,
}:
buildHomeAssistantComponent rec {
owner = "droans";
domain = "mass_queue";
version = "0.10.1";
src = fetchFromGitHub {
inherit owner;
repo = "mass_queue";
tag = "v${version}";
hash = "sha256-Q41/DAwXByeq0Qim3U735XYpLsI2DQqe5r1mJ3N/I2w=";
};
dependencies = [
music-assistant-client
];
# tests are being fixed in https://github.com/droans/mass_queue/pull/107
doCheck = false;
meta = {
changelog = "https://github.com/droans/mass_queue/releases/tag/${src.tag}";
description = "Actions to control player queues for Music Assistant";
homepage = "https://github.com/droans/mass_queue";
maintainers = with lib.maintainers; [ SuperSandro2000 ];
license = lib.licenses.mit;
};
}
@@ -0,0 +1,43 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "sonos-card";
version = "10.6.8";
src = fetchFromGitHub {
owner = "punxaphil";
repo = "custom-sonos-card";
tag = "v${version}";
hash = "sha256-hs2NU/2m/PpjdX9Te5MnXwPoyYVruJbcCKdD004ARxc=";
};
postPatch = ''
substituteInPlace package.json \
--replace-fail "npm run lint -- --fix &&" "" \
--replace-fail "&& bash create-dist-maxi-media-player.sh" ""
'';
npmDepsHash = "sha256-dCxu4SKAzEI2sGyZMEMPxmrGA3LE1jppG4VAVq45vSs=";
installPhase = ''
runHook preInstall
install -D dist/custom-sonos-card.js $out/custom-sonos-card.js
runHook postInstall
'';
passthru.entrypoint = "custom-sonos-card.js";
meta = {
changelog = "https://github.com/punxaphil/custom-sonos-card/releases/tag/${src.tag}";
description = "Lovelace card for controlling Sonos speakers in Home Assistant";
homepage = "https://github.com/punxaphil/custom-sonos-card";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}