notesnook: add wayland support (#357970)

This commit is contained in:
Wolfgang Walther
2024-12-13 20:20:32 +01:00
committed by GitHub
+5 -1
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, appimageTools, fetchurl, _7zz }:
{ lib, stdenv, appimageTools, fetchurl, makeWrapper, _7zz }:
let
pname = "notesnook";
@@ -44,11 +44,15 @@ let
linux = appimageTools.wrapType2 rec {
inherit pname version src meta;
nativeBuildInputs = [ makeWrapper ];
profile = ''
export LC_ALL=C.UTF-8
'';
extraInstallCommands = ''
wrapProgram $out/bin/notesnook \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
install -Dm444 ${appimageContents}/notesnook.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/notesnook.png -t $out/share/pixmaps
substituteInPlace $out/share/applications/notesnook.desktop \