2022-09-22 12:06:32 +00:00
|
|
|
{ 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
|
2022-09-22 12:25:18 +00:00
|
|
|
#
|
|
|
|
# TODO: the desktop files reference the uwrapped fluffychat and need to be updated.
|
|
|
|
# as is this only works when fluffychat is launched from the CLI
|
2022-09-22 12:06:32 +00:00
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/fluffychat \
|
|
|
|
--set LIBGL_ALWAYS_SOFTWARE 1
|
|
|
|
'';
|
|
|
|
})
|