Skip to content

Commit f01e00e

Browse files
brandonchinn178ysangkok
authored andcommitted
Update README for Mac
1 parent fd44687 commit f01e00e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,33 @@ You'll need to do the following to get `hackage-server`'s dependency `hs-captcha
8989

9090
nix-shell --packages zlib
9191

92+
#### Mac OS X
93+
94+
In addition to the above commands, you'll need to run
95+
96+
```bash
97+
brew install pkg-config
98+
```
99+
100+
After running the above `brew install` commands, you also need to update `cabal.project.local` with the following:
101+
102+
```bash
103+
cat >> cabal.project.local <<EOF
104+
package gd
105+
extra-include-dirs:
106+
$(echo $(brew --prefix)/Cellar/gd/*/include)
107+
extra-lib-dirs:
108+
$(echo $(brew --prefix)/Cellar/gd/*/lib)
109+
$(echo $(brew --prefix)/Cellar/libpng/*/lib)
110+
$(echo $(brew --prefix)/Cellar/jpeg-turbo/*/lib)
111+
$(echo $(brew --prefix)/Cellar/fontconfig/*/lib)
112+
$(echo $(brew --prefix)/Cellar/freetype/*/lib)
113+
114+
constraints:
115+
, HsOpenSSL +use-pkg-config
116+
EOF
117+
```
118+
92119

93120
## Setting up security infrastructure
94121

0 commit comments

Comments
 (0)