anytype: explicitly use electron_37

This commit is contained in:
Michal Koutenský
2025-11-10 21:49:00 +01:00
parent ce5cede2ee
commit 1b775cc04b

View File

@@ -6,7 +6,7 @@
pkg-config, pkg-config,
anytype-heart, anytype-heart,
libsecret, libsecret,
electron, electron_37,
makeDesktopItem, makeDesktopItem,
copyDesktopItems, copyDesktopItems,
commandLineArgs ? "", commandLineArgs ? "",
@@ -44,7 +44,7 @@ buildNpmPackage (finalAttrs: {
npmFlags = [ npmFlags = [
# keytar needs to be built against electron's ABI # keytar needs to be built against electron's ABI
"--nodedir=${electron.headers}" "--nodedir=${electron_37.headers}"
]; ];
patches = [ patches = [
@@ -87,7 +87,7 @@ buildNpmPackage (finalAttrs: {
cp LICENSE.md $out/share 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 \ --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 "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
--add-flags $out/lib/anytype/ \ --add-flags $out/lib/anytype/ \