diff --git a/pkgs/by-name/en/ente-auth/0001-disable-updates.patch b/pkgs/by-name/en/ente-auth/0001-disable-updates.patch new file mode 100644 index 000000000000..512106f8d853 --- /dev/null +++ b/pkgs/by-name/en/ente-auth/0001-disable-updates.patch @@ -0,0 +1,15 @@ +diff --git a/auth/lib/services/update_service.dart b/auth/lib/services/update_service.dart +index 716d553f1b..3946d87a7d 100644 +--- a/lib/services/update_service.dart ++++ b/lib/services/update_service.dart +@@ -134,9 +134,7 @@ class UpdateService { + } + + bool isIndependent() { +- return flavor == "independent" || +- _packageInfo.packageName.endsWith("independent") || +- PlatformUtil.isDesktop(); ++ return false; + } + } + \ No newline at end of file diff --git a/pkgs/by-name/en/ente-auth/package.nix b/pkgs/by-name/en/ente-auth/package.nix index 05ff15e07291..c3265538a209 100644 --- a/pkgs/by-name/en/ente-auth/package.nix +++ b/pkgs/by-name/en/ente-auth/package.nix @@ -31,6 +31,11 @@ flutter324.buildFlutterApplication rec { pubspecLock = lib.importJSON ./pubspec.lock.json; + patches = [ + # Disable update notifications and auto-update functionality + ./0001-disable-updates.patch + ]; + postPatch = '' rmdir assets/simple-icons ln -s ${simple-icons} assets/simple-icons