From efb6a3b7beb4d49826dff296dc81b64596855374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 14 May 2026 23:07:50 +0200 Subject: [PATCH 1/2] mopidy-iris: build from source --- pkgs/applications/audio/mopidy/iris.nix | 28 ++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/mopidy/iris.nix b/pkgs/applications/audio/mopidy/iris.nix index 0f0486ea7c2b..42d4333358aa 100644 --- a/pkgs/applications/audio/mopidy/iris.nix +++ b/pkgs/applications/audio/mopidy/iris.nix @@ -1,8 +1,11 @@ { lib, pythonPackages, - fetchPypi, + fetchFromGitHub, + fetchNpmDeps, mopidy, + nodejs, + npmHooks, }: pythonPackages.buildPythonApplication (finalAttrs: { @@ -10,12 +13,27 @@ pythonPackages.buildPythonApplication (finalAttrs: { version = "3.70.0"; pyproject = true; - src = fetchPypi { - pname = "mopidy_iris"; - inherit (finalAttrs) version; - hash = "sha256-md/1blTTtjiAAb/jiLE2EfiSlIUwEga8U7OiuKa466k="; + src = fetchFromGitHub { + owner = "jaedb"; + repo = "Iris"; + tag = finalAttrs.version; + hash = "sha256-Fc0LktN8pCRnrvk9uudXu10J3XfrRbdGlcDKXFNQzmQ="; }; + npmDeps = fetchNpmDeps { + inherit (finalAttrs) src; + hash = "sha256-aQHq80SLaOPOANYV+aDTWC/bxfc1it5iDeRJ8L5iuEU="; + }; + + nativeBuildInputs = [ + nodejs + npmHooks.npmConfigHook + ]; + + preBuild = '' + npm run prod + ''; + build-system = [ pythonPackages.setuptools ]; From e37f833de747c982a1e8476b9d22a53b8a111eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 14 May 2026 23:09:45 +0200 Subject: [PATCH 2/2] mopidy-iris: turn off Google Analytics per default --- pkgs/applications/audio/mopidy/iris.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/audio/mopidy/iris.nix b/pkgs/applications/audio/mopidy/iris.nix index 42d4333358aa..b5f7c628cc37 100644 --- a/pkgs/applications/audio/mopidy/iris.nix +++ b/pkgs/applications/audio/mopidy/iris.nix @@ -20,6 +20,12 @@ pythonPackages.buildPythonApplication (finalAttrs: { hash = "sha256-Fc0LktN8pCRnrvk9uudXu10J3XfrRbdGlcDKXFNQzmQ="; }; + postPatch = '' + # turn off Google Analytics per default + substituteInPlace src/js/store/index.js \ + --replace-fail 'allow_reporting: true' 'allow_reporting: false' + ''; + npmDeps = fetchNpmDeps { inherit (finalAttrs) src; hash = "sha256-aQHq80SLaOPOANYV+aDTWC/bxfc1it5iDeRJ8L5iuEU=";