Switch to choosenim instead of manually building it.

This commit is contained in:
Jonathan Bernard 2020-09-05 18:04:38 -05:00
parent e123b1569a
commit 55103b47cd

View File

@ -50,28 +50,10 @@ echo 'export GRADLE_HOME=$HOME/programs/gradle' >> ~/.profile
echo 'export PATH="$PATH:$GROOVY_HOME/bin:$GRADLE_HOME/bin"' >> ~/.profile echo 'export PATH="$PATH:$GROOVY_HOME/bin:$GRADLE_HOME/bin"' >> ~/.profile
# Setup Nim # Setup Nim
cd ~/programs curl https://nim-lang.org/choosenim/init.sh -sSf | sh
git clone https://github.com/nim-lang/Nim.git nim chmod +x ~/.choosenim/toolchains/*/bin/
cd nim echo 'export PATH="$PATH:$HOME/.nimble/bin"' >> ~/.profile
git clone --depth 1 https://github.com/nim-lang/csources export PATH="$PATH:$HOME/.nimble/bin"
cd csources && sh build.sh
cd ..
bin/nim c koch
./koch boot -d:release
echo 'export NIM_HOME="$HOME/programs/nim"' >> ~/.profile
echo 'export PATH="$PATH:$NIM_HOME/bin:$HOME/.nimble/bin"' >> ~/.profile
export NIM_HOME="$HOME/programs/nim"
export PATH="$PATH:$NIM_HOME/bin:$HOME/.nimble/bin"
cd ~/programs
git clone https://github.com/nim-lang/nimble
cd nimble
nim c -r src/nimble install
mkdir ~/.config/nimble
cp "$DOTFILE_DIR/nimble.ini" ~/.config/nimble
nimble update
source ~/.profile source ~/.profile