From f38a3fd6bd6a017b3ecfcd6b58bbf3b92dd9fbf1 Mon Sep 17 00:00:00 2001 From: linsui Date: Mon, 31 Jul 2023 16:08:22 +0800 Subject: [PATCH] fcitx5: use makeBinaryWrapper --- pkgs/tools/inputmethods/fcitx5/with-addons.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/inputmethods/fcitx5/with-addons.nix b/pkgs/tools/inputmethods/fcitx5/with-addons.nix index cf8e72f1f70d..9268147b96be 100644 --- a/pkgs/tools/inputmethods/fcitx5/with-addons.nix +++ b/pkgs/tools/inputmethods/fcitx5/with-addons.nix @@ -1,6 +1,6 @@ { lib , symlinkJoin -, makeWrapper +, makeBinaryWrapper , fcitx5 , fcitx5-configtool , fcitx5-qt @@ -13,14 +13,14 @@ symlinkJoin { paths = [ fcitx5 fcitx5-configtool fcitx5-qt fcitx5-gtk ] ++ addons; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeBinaryWrapper ]; postBuild = '' wrapProgram $out/bin/fcitx5 \ --prefix FCITX_ADDON_DIRS : "$out/lib/fcitx5" \ --suffix XDG_DATA_DIRS : "$out/share" \ --suffix PATH : "$out/bin" \ - --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath (lib.flatten (map (x: x.extraLdLibraries or []) addons))} + --suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath (lib.flatten (map (x: x.extraLdLibraries or []) addons))}" ${lib.optionalString (fcitx5-configtool != null)'' # Configtool call libexec/fcitx5-qt5-gui-wrapper for gui addons in FCITX_ADDON_DIRS