fluffychat: use software rendering to fix for moby

This commit is contained in:
2022-09-22 05:06:32 -07:00
parent 7be0a33522
commit 20872d3733
3 changed files with 17 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ let
emote # TODO: package [smile](https://github.com/mijorus/smile) for probably a better mobile experience.
evince # works on phosh
fluffychat
fluffychat-moby # TODO: ship normal fluffychat on non-moby?
foliate
font-manager
gimp # broken on phosh

View File

@@ -0,0 +1,15 @@
{ pkgs }:
(pkgs.symlinkJoin {
name = "fluffychat-moby";
paths = [ pkgs.fluffychat ];
buildInputs = [ pkgs.makeWrapper ];
# ordinary fluffychat on moby displays blank window;
# > Failed to start Flutter renderer: Unable to create a GL context
# this is temporarily solved by using software renderer
# - see https://github.com/flutter/flutter/issues/106941
postBuild = ''
wrapProgram $out/bin/fluffychat \
--set LIBGL_ALWAYS_SOFTWARE 1
'';
})

View File

@@ -21,6 +21,7 @@
};
#### customized packages
fluffychat-moby = prev.callPackage ./fluffychat-moby { pkgs = prev; };
# nixos-unstable pleroma is too far out-of-date for our db
pleroma = prev.callPackage ./pleroma { };
# jackett doesn't allow customization of the bind address: this will probably always be here.