Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Create brew formula #529

Open
Open

Description

@ismailmustafa

Running make takes about 20 minutes to complete on my computer. Pre-compiling this and serving it as a brew formula would make installing hie significantly faster.

Activity

  1. alanz commented on May 1, 2018

    @alanz
    Collaborator

    PR's welcome, I am not a MAC user.

  2. self-assigned this
    on Jul 4, 2018
  3. lukel97 commented on Jul 7, 2018

    @lukel97
    Collaborator

    Looks like they don't allow the use of stack in Homebrew formulae. We could possibly provide a ghc/cabal single-version install of hie without hie-wrapper, but would need to leave a caveat that it only supports one version of ghc.

    Another alternative might be providing our own binaries via Github releases. We would probably have to include an install script to move all the different binaries into the right location though

  4. ismailmustafa commented on Jul 22, 2018

    @ismailmustafa
    ContributorAuthor

    Another alternative might be providing our own binaries via Github releases.

    @bubba That's what I meant with my initial suggestion. Apologies for not being clearer. I don't think it's particularly useful building from source using homebrew as it will still take just as long. I can look into this as well when I get a bit of free time.

  5. lukel97 commented on Aug 26, 2018

    @lukel97
    Collaborator

    @chris-kahn I reopened the PR for the brew formula a while back but it hasn't gone anywhere so far: Homebrew/homebrew-core#29800

  6. lukel97 commented on Aug 26, 2018

    @lukel97
    Collaborator

    @ismailmustafa I think with homebrew it would provide bottled binaries for us, although I agree we should probably release our own binaries

  7. alanz commented on Dec 24, 2018

    @alanz
    Collaborator

    @bubba Is this still relevant?

  8. added this to the Some time milestone on Dec 24, 2018
  9. lukel97 commented on Dec 27, 2018

    @lukel97
    Collaborator

    The homebrew-core repository isn’t accepting any formulae with cabal new-build nor stack, and the GHC version is still 8.4.4 it looks like. I think the best solution for now is just to host the HIE formula in this repository, since I recently discovered it’s possible to install formulae by just passing the URL to it.

  10. gregnwosu commented on Mar 8, 2019

    @gregnwosu

    The homebrew-core repository isn’t accepting any formulae with cabal new-build nor stack, and the GHC version is still 8.4.4 it looks like. I think the best solution for now is just to host the HIE formula in this repository, since I recently discovered it’s possible to install formulae by just passing the URL to it.

    can you give some detail on how to create the formula and a suggestion of where to keep it?

  11. Cj-bc commented on Mar 11, 2019

    @Cj-bc

    @gregnwosu hello, you can read official document at here
    The way to specify formula is, as far as I know, one of official-tap/third-party-tap/URL.
    So if you use URL to specify formula, it isn't a problem where to keep formula (unless it can't be accessed.)
    Most common way to keep it is making own Tap repository on Github. Just name repo with prefix 'homebrew-' and commit formula to the repository, push to Github.
    All infomation about those topics should be in https://docs.brew.sh

  12. lukel97 commented on Mar 12, 2019

    @lukel97
    Collaborator

    This is probably relevant for homebrew, since it's affected by the same data-files issue here: #992 (comment)

    Basically some of our dependencies rely on data-files which need to be copied over, but more importantly need to be properly prefixed when building with cabal to /usr/local/Cellar/hie or whatever, since cabal new-build builds into a temporary store with homebrew. The paths are hard coded into the binary depending on the --prefix flag used when configuring. Unfortunately cabal new-build doesn't support this flag.
    I have an extremely naïve branch of Cabal that fixes the paths whenever --prefix is passed, but doesn't install the binaries nor data-files into the prefixed paths, and so that will probably have to be copied manually.

  13. orwell1984 commented on Nov 12, 2019

    @orwell1984

    Is there a way to install HIE on MacOS from binaries as of today?

  14. fendor commented on Nov 12, 2019

    @fendor
    Collaborator

    If you are willing to use nix, there is https://github.com/Infinisil/all-hies but otherwise, no.
    Note, that this might change in the next months.

  15. orwell1984 commented on Nov 12, 2019

    @orwell1984

    Nix sounds interesting but that readme pulls no punches. I have no idea what option to choose and what would it mean in practice. Spending 5 hours reading on each of those tools is not what I'm after atm - I'll wait for binary/brew formula. Thanks for the reply @fendor !

  16. mpickering commented on Nov 12, 2019

    @mpickering
    Collaborator

    @chris-kahn You make it sound as if we are trying to make it as difficult as possible to install. The reality is that there are just a few contributors and there are far more pressing things to implement which make the project work at all..

    I suggest you either attempt to help out or readjust your expectations about what an entirely volunteer led project is expected to achieve.

  17. lukel97 commented on Nov 12, 2019

    @lukel97
    Collaborator

    @orwell1984 once hie-bios is merged, it should be possible as it removes the data-files dependency on cabal-helper. I will give this another try later on with the current state of the branch

  18. fendor commented on Nov 12, 2019

    @fendor
    Collaborator

    @bubba data-files of hlint still exist and need to be handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions