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

Update building from source instructions #399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ Please note that this project is released with a [Contributor Code of Conduct](C

### Building from source

If you are running macOS:

```bash
brew install haskell-stack
git clone https://github.com/avh4/elm-format.git
Expand All @@ -308,6 +310,10 @@ stack install
~/.local/bin/elm-format-0.18 --help
```

If you are running a Linux distribution other than nixOS, the above instructions should work if you replace `brew install haskell-stack` with obtaining [Stack](http://haskellstack.org) for your distribution.

If you are running nixOS, install [Stack](http://haskellstack.org) with `nix-env -iA nixos.stack` instead of `brew install haskell-stack` above. You'll also need to activate stack's [nix integration](https://docs.haskellstack.org/en/stable/nix_integration/) by substituting `stack --nix` for `stack` in all of the above commands.

### Running tests

```bash
Expand Down