Built with 32bit patches from https://github.com/dmy/elm-raspberry-pi.
Please do not report issues at the official Elm projects. You can comment here in the gist, note however that this is not a project that I intend to support in the future.
curl -L https://gist.github.com/rlefevre/8fcf368d9951137e9e810c06c111bba1/raw/52c66eb0e01737e28f1f67f20790212b8ca6fd88/elm-i386-20200424.tar.gz | sudo tar zxC /usr/local/bin
The tarball includes the following binaries:
- elm 0.19.1
- elm-format 0.8.3
- elmi-to-json 1.3.0 (needed by
elm-test
)
- Built and tested on Docker x64 with Debian GNU/Linux 10 Buster i386 (32-bit).
$ sudo rm /usr/local/bin/elm{,-format,i-to-json}
To use Elm tools like elm-test or
elm-doc-preview,
you will need Node.js.
The following command will install Node.js v10 and npm
:
sudo apt-get update
sudo apt-get install nodejs npm
It is advised to configure npm to store packages in a user directory.
Add to ~/.bashrc
:
NPM_PACKAGES="$HOME/.npm-packages"
export PATH="$NPM_PACKAGES/bin:$PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
unset MANPATH # delete if you already modified MANPATH elsewhere in your configuration
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
unset NPM_PACKAGES
and run
npm config set prefix ~/.npm-packages
Then logout/login.
You probably want to update to the latest npm
version at this point:
npm install -g npm@latest
Then logout/login again.
You can install elm-test
globally:
npm install -g elm-test --ignore-scripts
But it won't run without an elmi-to-json
binary suitable for the platform,
which is not available upstream.
So we will make a link, in the expected location, to the one provided by this release:
$ ln -sft $(npm config get prefix)/lib/node_modules/elm-test/node_modules/elmi-to-json/bin /usr/local/bin/elmi-to-json
All elm/core
tests pass successfully:
# elm-test
elm-test 0.19.1-revision2
-------------------------
Running 1268 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 365698587306260 /root/core/tests/tests/Main.elm /root/core/tests/tests/Test/Array.elm /root/core/tests/tests/Test/Basics.elm /root/core/tests/tests/Test/Bitwise.elm /root/core/tests/tests/Test/Char.elm /root/core/tests/tests/Test/CodeGen.elm /root/core/tests/tests/Test/Dict.elm /root/core/tests/tests/Test/Equality.elm /root/core/tests/tests/Test/List.elm /root/core/tests/tests/Test/Maybe.elm /root/core/tests/tests/Test/Result.elm /root/core/tests/tests/Test/Set.elm /root/core/tests/tests/Test/String.elm /root/core/tests/tests/Test/Tuple.elm
TEST RUN PASSED
Duration: 61718 ms
Passed: 1268
Failed: 0
I have, for you, a pull request from my fork which exports Bash variables and uses a symbolic link.