From d3577c6727d0275e967dd30a2e7039fe42bf5073 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Sat, 27 Apr 2024 21:21:59 +0200 Subject: [PATCH] koodo-reader: fix wrapper variable expansion --- pkgs/by-name/ko/koodo-reader/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ko/koodo-reader/package.nix b/pkgs/by-name/ko/koodo-reader/package.nix index 84da01165fea..6386cece98ef 100644 --- a/pkgs/by-name/ko/koodo-reader/package.nix +++ b/pkgs/by-name/ko/koodo-reader/package.nix @@ -7,6 +7,7 @@ fetchYarnDeps, makeDesktopItem, copyDesktopItems, + makeWrapper, wrapGAppsHook, electron, }: @@ -37,6 +38,7 @@ mkYarnPackage rec { nativeBuildInputs = [ copyDesktopItems + makeWrapper wrapGAppsHook ]; @@ -77,8 +79,9 @@ mkYarnPackage rec { runHook postInstall ''; + # we use makeShellWrapper instead of the makeBinaryWrapper provided by wrapGAppsHook for proper shell variable expansion postFixup = '' - makeWrapper ${electron}/bin/electron $out/bin/koodo-reader \ + makeShellWrapper ${electron}/bin/electron $out/bin/koodo-reader \ --add-flags $out/share/lib/koodo-reader/resources/app.asar \ "''${gappsWrapperArgs[@]}" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \