From 561f0f54e13ff3461788fdfe2dcfd96e92616ebf Mon Sep 17 00:00:00 2001 From: Chad Nelson Date: Fri, 28 Feb 2025 10:30:43 -0700 Subject: [PATCH] fixed issue with postinstall --- Formula/msg-cli.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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