Nextcloud bug/help with workaround

From skimming the source patching like this should do it:

nextcloud-client.overrideAttrs (attrs: {
  patches = attrs.patches ++ [
    # Workaround for https://github.com/nextcloud/desktop/issues/6218
    (builtins.toFile "remove-desktop-implements.patch" ''
      --- a/mirall.desktop.in
      +++ b/mirall.desktop.in
      @@ -200 +199,0 @@
      -@LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS@
    '')
  ];
})

Though maybe someone else can offer a method that doesn’t cause the whole thing to recompile.

Also note that the upstream issue suggests that the desktop entry is correct and the .ini is the duplicate, so the more correct patch might be something like:

--- a/shell_integration/libcloudproviders/CMakeLists.txt
+++ b/shell_integration/libcloudproviders/CMakeLists.txt
@@ -37 +36,0 @@
-    libcloudproviders_add_config(org.freedesktop.CloudProviders.ini.in)