joplin-desktop: Add support for NIXOS_OZONE_WL
This commit is contained in:
parent
cf0db2e3ff
commit
7b4a3549ec
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, appimageTools, fetchurl, undmg }:
|
{ lib, stdenv, appimageTools, fetchurl, makeWrapper, undmg }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "joplin-desktop";
|
pname = "joplin-desktop";
|
||||||
|
@ -51,6 +51,9 @@ let
|
||||||
extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs;
|
extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs;
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
mv $out/bin/{${name},${pname}}
|
mv $out/bin/{${name},${pname}}
|
||||||
|
source "${makeWrapper}/nix-support/setup-hook"
|
||||||
|
wrapProgram $out/bin/${pname} \
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
|
||||||
install -Dm444 ${appimageContents}/@joplinapp-desktop.desktop -t $out/share/applications
|
install -Dm444 ${appimageContents}/@joplinapp-desktop.desktop -t $out/share/applications
|
||||||
install -Dm444 ${appimageContents}/@joplinapp-desktop.png -t $out/share/pixmaps
|
install -Dm444 ${appimageContents}/@joplinapp-desktop.png -t $out/share/pixmaps
|
||||||
substituteInPlace $out/share/applications/@joplinapp-desktop.desktop \
|
substituteInPlace $out/share/applications/@joplinapp-desktop.desktop \
|
||||||
|
|
Loading…
Reference in a new issue