ark/pkgs-set/overlays/obsidian.nix
2022-11-27 01:04:43 +03:00

13 lines
425 B
Nix

final: prev: {
obsidian = prev.obsidian.overrideAttrs (old: {
installPhase =
prev.lib.replaceStrings
["makeWrapper ${final.electron_18}/bin/electron $out/bin/obsidian"]
[
'' makeWrapper ${final.electron_20}/bin/electron $out/bin/obsidian \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"''
]
old.installPhase;
});
}