From 552ffb31c20dd7d047c639cd82f10a37cb6ca206 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Mon, 18 Dec 2023 10:13:28 -0700 Subject: [PATCH] espanso: fix sandbox issue with /bin/echo --- pkgs/applications/office/espanso/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/office/espanso/default.nix b/pkgs/applications/office/espanso/default.nix index 037cf509a1f7a..d4d0290277e11 100644 --- a/pkgs/applications/office/espanso/default.nix +++ b/pkgs/applications/office/espanso/default.nix @@ -1,4 +1,5 @@ { lib +, coreutils , fetchFromGitHub , rustPlatform , pkg-config @@ -106,7 +107,9 @@ rustPlatform.buildRustPackage rec { ]; postPatch = lib.optionalString stdenv.isDarwin '' - substituteInPlace scripts/create_bundle.sh --replace target/mac/ $out/Applications/ + substituteInPlace scripts/create_bundle.sh \ + --replace target/mac/ $out/Applications/ \ + --replace /bin/echo ${coreutils}/bin/echo patchShebangs scripts/create_bundle.sh substituteInPlace espanso/src/res/macos/Info.plist \ --replace "espanso" "${placeholder "out"}/Applications/Espanso.app/Contents/MacOS/espanso"