notesnook: add wayland support (#357970)
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user