-
Notifications
You must be signed in to change notification settings - Fork 1
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
Building the project on a fresh machine #162
Comments
Let's not assume the user has
I think a better solution is updating the |
I'm not suggesting here that the default way to build the project is via nix. If nix offers a painless approach to grabbing the correct version of |
You finally found a reason to get rid of Voldemort!!!
… On Feb 27, 2020, at 10:48, recursion-ninja ***@***.***> wrote:
Let's not assume the user has nix installed or wants it installed it for them. It adds to the user's machine an additional program which was not necessary to build pcg.
stack was our old solution to this issue, but they are no longer viable due to not supporting the newest version of the .cabal file format.
I think a better solution is updating the makefile to query for our ghc and cabal dependencies on the machine and install them when necessary. Related to #127 <#127>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#162?email_source=notifications&email_token=ADG45MSY5QWDF6RSMWETDSTRE7OEVA5CNFSM4K45L7OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENE2LAI#issuecomment-592029057>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADG45MX5X43X57KYTU7E7XLRE7OEVANCNFSM4K45L7OA>.
|
I tried this out on a fresh machine without the correct version of GHC or cabal and the following seems to work so long as nix is installed:
Note: The use of Also worth noting that this will not result in anything being globally installed on the machine. |
Very nice. Ready for me to try?
|
I think so, yes! [with the current exception of Catalina] |
I think we should put this in the In the near future, perhaps we can use the If we rework our |
Catalina you mean?
|
Currently our project can be very painful to build on a fresh machine if it is not easy to grab the correct versions of GHC and cabal. Nix is a package manager for both mac and linux that should, in theory, make this a bit easier as it can grab the relevant version of the compiler for you. We should test whether this makes it easy to build on a fresh machine. The instructions to do so are:
First install nix: this can be done via:
curl https://nixos.org/nix/install | sh
though the website here also offers tarballs and a way to securely verify the installation.After that is installed (and perhaps after restarting the shell) one should then be able to run (within the pcg directory):
This is assuming the version of the compiler we wish to build with is
ghc-8.8.1
but can be changed as appropriate so long as the compiler is available from the nix package repository.The text was updated successfully, but these errors were encountered: