Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew Formula #237

Open
0xflotus opened this issue Dec 11, 2020 · 13 comments
Open

Homebrew Formula #237

0xflotus opened this issue Dec 11, 2020 · 13 comments

Comments

@0xflotus
Copy link

Is it possible to make it installable via Homebrew for Mac OS?

@gelisam
Copy link
Owner

gelisam commented Dec 11, 2020

That would be pretty cool. What's the process for being added to homebrew? I assume it's like for a Linux distro, in which the person maintaining the distro's entry is typically different from the person maintaining the package? Would you like to be that person?

@0xflotus
Copy link
Author

I'm not sure, I've never done that before and I don't know the haskell ecosystem well.

@gelisam
Copy link
Owner

gelisam commented Dec 11, 2020

I'm familiar with (and can help with) the Haskell part, it's the Homebrew part I would need help with

@0xflotus
Copy link
Author

0xflotus commented Dec 12, 2020

I have also no experience in writing Homebrew Formulas, I know it's Ruby Code and I think this is a good starting point: Formula Cookbook

Are there any precompiled binaries of hawk for Mac OS?

@chenrui333
Copy link

Actually cabal-install v1 is deprecated on the homebrew side recently, see this issue. So you might need to update to use calbal v2 commands first. I can help with the homebrew formula creation.

@gelisam
Copy link
Owner

gelisam commented Dec 14, 2020

I can help with the homebrew formula creation

Excellent, thanks for volunteering to help! I will ping you once I figure out how to switch to cabal-v2. I know I should have upgraded ages ago, but unfortunately there are some deep interactions which are not that easy to fix.

@gelisam
Copy link
Owner

gelisam commented Dec 14, 2020

Are there any precompiled binaries of hawk for Mac OS?

I don't think that would do you much good, because hawk relies on a Haskell compiler already being installed (which I'm sure homebrew can help with), and relies on the package database created during compilation to determine which Haskell packages should be made available to the Haskell expressions given to hawk on the command-line.

@chenrui333
Copy link

I can help with the homebrew formula creation

Excellent, thanks for volunteering to help! I will ping you once I figure out how to switch to cabal-v2. I know I should have upgraded ages ago, but unfortunately there are some deep interactions which are not that easy to fix.

That sounds great!

@gelisam
Copy link
Owner

gelisam commented Jan 4, 2021

@chenrui333 as of #242, hawk now supports cabal-v2! I had to make some assumptions about the folder in which it and the relevant package databases are installed, so if brew needs to install things in a non-standard location, we might have to tweak that logic a bit.

Another potential issue is #225: hawk was written for ghc-8.4.4, and some work is needed to make it compatible with a more recent version. ghc-8.4.4 is far from being the most recent version of ghc, so it might not be as simple as having brew install ghc and then hawk.

Yet another potential issue i #246: hawk expects to be able to run ghc-8.4.4 just by running "ghc" in the shell, meaning that ghc-8.4.4 needs to be in the PATH. I assume that brew would prefer to give hawk the path to the ghc-8.4.4 it installed?

@chenrui333
Copy link

Sounds good, I will take a shot now.

@chenrui333
Copy link

Yet another potential issue i #246: hawk expects to be able to run ghc-8.4.4 just by running "ghc" in the shell, meaning that ghc-8.4.4 needs to be in the PATH. I assume that brew would prefer to give hawk the path to the ghc-8.4.4 it installed?

This is actually a dealbreaker, there is no [email protected] support on the homebrew side (as I just checked)

@gelisam
Copy link
Owner

gelisam commented Jan 11, 2021

Ok, I'll let you know once I manage to upgrade to the latest GHC

@gelisam
Copy link
Owner

gelisam commented Mar 16, 2021

hawk now supports ghc-8.8.4 up through ghc-9.0.1! I assume that's better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants