Last active
October 8, 2021 18:54
-
-
Save myazakky/a3627f760f9a772f89c7ea9de6a8be45 to your computer and use it in GitHub Desktop.
nim-installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: | |
# curl -L https://gist.github.com/myazakky/a3627f760f9a772f89c7ea9de6a8be45/raw > /tmp/install_nim.sh; sudo sh /tmp/install_nim.sh | |
apt install \ | |
wget \ | |
unar \ | |
gcc \ | |
cd / \ | |
&& wget https://nim-lang.org/download/nim-1.4.8.tar.xz \ | |
&& unar nim-1.4.8.tar.xz | |
cd /nim-1.4.8 \ | |
&& sh build.sh \ | |
&& bin/nim c koch \ | |
&& ./koch boot -d:release \ | |
&& ./koch tools | |
echo "export PATH=$PATH:/nim-1.4.8/bin" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment