1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

espanso: fix sandbox issue with /bin/echo

This commit is contained in:
Nathan Henrie 2023-12-18 10:13:28 -07:00
parent 11e6e1f7cc
commit 552ffb31c2

View file

@ -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 "<string>espanso</string>" "<string>${placeholder "out"}/Applications/Espanso.app/Contents/MacOS/espanso</string>"