Unverified Commit 3fef5e7b authored by Kira Bruneau's avatar Kira Bruneau Committed by GitHub
Browse files

anytype: explicitly use electron_37 (#460471)

parents 0730692f 1b775cc0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  pkg-config,
  anytype-heart,
  libsecret,
  electron,
  electron_37,
  makeDesktopItem,
  copyDesktopItems,
  commandLineArgs ? "",
@@ -44,7 +44,7 @@ buildNpmPackage (finalAttrs: {

  npmFlags = [
    # keytar needs to be built against electron's ABI
    "--nodedir=${electron.headers}"
    "--nodedir=${electron_37.headers}"
  ];

  patches = [
@@ -87,7 +87,7 @@ buildNpmPackage (finalAttrs: {

    cp LICENSE.md $out/share

    makeWrapper '${lib.getExe electron}' $out/bin/anytype \
    makeWrapper '${lib.getExe electron_37}' $out/bin/anytype \
      --set-default ELECTRON_IS_DEV 0 \
      --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
      --add-flags $out/lib/anytype/ \