Unverified Commit 1039b657 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #245586 from hall/logseq-electron-24

logseq: match upstream electron version
parents 927401d3 8764644b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3,7 +3,8 @@
, fetchurl
, appimageTools
, makeWrapper
, electron
# graphs will not sync without matching upstream's major electron version
, electron_24
, git
, nix-update-script
}:
@@ -56,7 +57,7 @@ in {

  postFixup = ''
    # set the env "LOCAL_GIT_DIRECTORY" for dugite so that we can use the git in nixpkgs
    makeWrapper ${electron}/bin/electron $out/bin/${pname} \
    makeWrapper ${electron_24}/bin/electron $out/bin/${pname} \
      --set "LOCAL_GIT_DIRECTORY" ${git} \
      --add-flags $out/share/${pname}/resources/app \
      --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \