Installing copilot globally on Mac #537
Unanswered
ivanperez-keera
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Tagging @RyanGlScott for awareness. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm investigating how to install Copilot globally on Mac.
I'm trying to make the process trivial, automatic, and based on standard tools to install packages, and oriented towards non-haskellers. Having them manually interact with cabal is a no-go.
My goal is to eventually enable something along the following lines:
after which all of the copilot modules should be available in GHC.
I can install ghc 9.8 (the latest version supported) with brew. I can also install cabal-install with brew (although it brings GHC 9.10, which is not ideal). I can then do
cabal update
, andcabal install --lib copilot
. However, any attempts at adding that to a homebrew formula end up with the modules not being accessible or found.One possibility would be to create a GHC environment (package environment? both?) in
/usr/local/Cellar/copilot/4.0_1/<whatever>
(as of the current version), and create wrappers around GHC that sets the right variables or passes the right arguments to GHC/GHCi (for example,copilotc
andcopiloti
. I have not been successful at doing that yet. You can see my attempts at: https://github.com/ivanperez-keera/hombrew and specifically https://github.com/ivanperez-keera/hombrew/actions/workflows/mac-install.yaml.Both GHC and cabal have changed a lot in how they manage packages in the last few versions, so this is non-trivial.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions