From c2b12c8c6556dd6653240353345b932ec953561e Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 28 Aug 2017 09:00:17 -0400 Subject: [PATCH] Update building from source instructions Added note for Linux users, and an extra note for nixOS users. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 7735fbceb..784dd7a9d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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