espanso: fix build on darwin

This commit is contained in:
Weijia Wang 2023-12-16 23:48:11 +01:00
parent 271235e389
commit 434c8b89d4

View file

@ -117,6 +117,11 @@ rustPlatform.buildRustPackage rec {
--replace '"/usr/local/bin/espanso"' '"${placeholder "out"}/bin/espanso"' --replace '"/usr/local/bin/espanso"' '"${placeholder "out"}/bin/espanso"'
''; '';
env = lib.optionalAttrs stdenv.cc.isClang {
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
# Some tests require networking # Some tests require networking
doCheck = false; doCheck = false;