From 09b30112a1a4c7a395a7db251cc6031e59c31d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 Mar 2026 01:24:03 +0100 Subject: [PATCH 1/2] home-assistant-custom-lovelace-modules.sonos-card: init at 10.6.8 --- .../sonos-card/package.nix | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-lovelace-modules/sonos-card/package.nix diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/sonos-card/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/sonos-card/package.nix new file mode 100644 index 000000000000..55f0f7e61901 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/sonos-card/package.nix @@ -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 ]; + }; +} From 83f1f410878bf051e073ea3ca4467cd2f3c464e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 11 Apr 2026 03:35:33 +0200 Subject: [PATCH 2/2] home-assistant-custom-components.mass-queue: init at 0.10.1 --- .../custom-components/mass-queue/package.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/mass-queue/package.nix diff --git a/pkgs/servers/home-assistant/custom-components/mass-queue/package.nix b/pkgs/servers/home-assistant/custom-components/mass-queue/package.nix new file mode 100644 index 000000000000..333f562ecead --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/mass-queue/package.nix @@ -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; + }; +}