diff --git a/Formula/msg-cli.rb b/Formula/msg-cli.rb index 3b6ce22..58607ab 100644 --- a/Formula/msg-cli.rb +++ b/Formula/msg-cli.rb @@ -44,6 +44,12 @@ class MsgCli < Formula end def post_install + ENV["GUILE_AUTO_COMPILE"] = "0" + + # We need this so we can find other modules. + ENV["GUILE_LOAD_PATH"] = HOMEBREW_PREFIX/"share/guile/site/3.0" + ENV["GUILE_LOAD_COMPILED_PATH"] = HOMEBREW_PREFIX/"lib/guile/3.0/site-ccache" + ENV["GUILE_SYSTEM_EXTENSIONS_PATH"] = HOMEBREW_PREFIX/"lib/guile/3.0/extensions" system "guild", "compile", "-o", "#{prefix}/lib/guile/3.0/site-ccache/msg/machine.go", "#{prefix}/share/guile/site/3.0/msg/machine.scm" end