Skip to content

Commit

Permalink
Merge pull request #275232 from n8henrie/fix-espanso-sandbox
Browse files Browse the repository at this point in the history
espanso: fix sandbox issue with /bin/echo
  • Loading branch information
wegank authored Dec 19, 2023
2 parents b0d1fe9 + 552ffb3 commit 9503015
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/applications/office/espanso/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, coreutils
, fetchFromGitHub
, rustPlatform
, pkg-config
Expand Down Expand Up @@ -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 "<string>espanso</string>" "<string>${placeholder "out"}/Applications/Espanso.app/Contents/MacOS/espanso</string>"
Expand Down

0 comments on commit 9503015

Please sign in to comment.