... | ... | @@ -6,16 +6,14 @@ If you're on a recent Linux system, then you should be able to get a working bui |
|
|
## Docker
|
|
|
|
|
|
|
|
|
If you are familiar with docker and comfortable doing all your work in the docker container with a default bash shell. This is a 1 step install for a development image (ghc build requirements plus a few development related tools). The runghc binary can not be run outside of the docker container because GHC will be compiled with paths only available in the container.
|
|
|
First cd into your ghc directory that you should check out according to [Building/GettingTheSources](building/getting-the-sources), then declare `DOCKER_ENV=9e4c540d9e4972a36291dfdf81f079f37d748890`. For the latest revision, check the [.gitlab-ci.yml](https://gitlab.haskell.org/ghc/ghc/-/blob/master/.gitlab-ci.yml#L5). Finally,
|
|
|
If you are familiar with docker and don't mind running the build and runghc inside a docker image then this is a great option. A docker image is provided with all the ghc build requirements and some developer related tools.
|
|
|
|
|
|
```
|
|
|
$ sudo docker run --rm -i -t -v `pwd`:/home/ghc registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_ENV /bin/bash
|
|
|
```
|
|
|
1. The GHC source code is not part of the docker image. First download the relevant version of the GHC source code, described in [Building/GettingTheSources](building/getting-the-sources).
|
|
|
2. Set the version of the docker image with `export DOCKER_ENV=7f63b34ac87b85470eef9c668e9528e8e2f5b46a`. This is an example image version, you can find the latest [here](https://gitlab.haskell.org/ghc/ghc/-/blob/master/.gitlab-ci.yml#L5).
|
|
|
3. cd into the directory with the source code
|
|
|
4. Now run `docker run --rm -i -t -v $(pwd):/home/ghc registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_ENV /bin/bash`
|
|
|
|
|
|
That's it!
|
|
|
This mounts your ghc source code into the docker container.
|
|
|
This way you can still hack on ghc with Emacs, etc, but you are just building from the docker container.
|
|
|
You can now edit the GHC source code with your own editor. Builds can be done inside the docker container following [Building/Hadrian](building/hadrian).
|
|
|
|
|
|
## Fedora
|
|
|
|
... | ... | |