From ddaec60002f6286aacd6d9971a15b358e348a1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 29 Dec 2024 13:45:07 +0100 Subject: [PATCH] enteauth: fix ~/.cache being deleted Fix for https://github.com/ente-io/ente/issues/4536 --- modules/ente-auth.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/ente-auth.nix b/modules/ente-auth.nix index b970df7..29dbc31 100644 --- a/modules/ente-auth.nix +++ b/modules/ente-auth.nix @@ -4,8 +4,17 @@ self: ... }: +let + # TODO: remove when fixed: https://github.com/ente-io/ente/issues/4536 + ente-auth = pkgs.ente-auth.overrideAttrs (o: { + prePatch = '' + substituteInPlace lib/utils/directory_utils.dart \ + --replace-fail "return cacheHome" "return Directory(p.join(cacheHome.path, 'enteauthinit'));" + ''; + }); +in { - hm-gep.home.packages = [ pkgs.ente-auth ]; + hm-gep.home.packages = [ ente-auth ]; services.gnome.gnome-keyring.enable = true; }