ledger-live-desktop: support NIXOS_OZONE_WL
Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
b8b3be7098
commit
fa19de9a8f
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchurl, appimageTools, imagemagick }:
|
{ lib, fetchurl, appimageTools, makeWrapper, imagemagick }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "ledger-live-desktop";
|
pname = "ledger-live-desktop";
|
||||||
|
@ -22,6 +22,10 @@ appimageTools.wrapType2 rec {
|
||||||
${imagemagick}/bin/convert ${appimageContents}/ledger-live-desktop.png -resize 512x512 ledger-live-desktop_512.png
|
${imagemagick}/bin/convert ${appimageContents}/ledger-live-desktop.png -resize 512x512 ledger-live-desktop_512.png
|
||||||
install -m 444 -D ledger-live-desktop_512.png $out/share/icons/hicolor/512x512/apps/ledger-live-desktop.png
|
install -m 444 -D ledger-live-desktop_512.png $out/share/icons/hicolor/512x512/apps/ledger-live-desktop.png
|
||||||
|
|
||||||
|
source "${makeWrapper}/nix-support/setup-hook"
|
||||||
|
wrapProgram "$out/bin/${pname}" \
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations --enable-wayland-ime}}"
|
||||||
|
|
||||||
substituteInPlace $out/share/applications/ledger-live-desktop.desktop \
|
substituteInPlace $out/share/applications/ledger-live-desktop.desktop \
|
||||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue