Skip to content

Instantly share code, notes, and snippets.

@myazakky
Last active October 8, 2021 18:54
Show Gist options
  • Save myazakky/a3627f760f9a772f89c7ea9de6a8be45 to your computer and use it in GitHub Desktop.
Save myazakky/a3627f760f9a772f89c7ea9de6a8be45 to your computer and use it in GitHub Desktop.
nim-installer
#!/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