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] 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=";