3
0
Fork 0
forked from mirrors/nixpkgs

logseq: add NIXOS_OZONE_WL check

This commit is contained in:
Bryn Edwards 2022-11-30 22:43:47 +00:00 committed by Artturin
parent e371f83543
commit ffbea7a3d9

View file

@ -44,7 +44,8 @@ stdenv.mkDerivation rec {
# set the env "LOCAL_GIT_DIRECTORY" for dugite so that we can use the git in nixpkgs
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
--set "LOCAL_GIT_DIRECTORY" ${git} \
--add-flags $out/share/${pname}/resources/app
--add-flags $out/share/${pname}/resources/app \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
'';
passthru.updateScript = ./update.sh;