From 55103b47cde77f534a8949f981d903054789047f Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 5 Sep 2020 18:04:38 -0500 Subject: [PATCH] Switch to choosenim instead of manually building it. --- setup.sh | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/setup.sh b/setup.sh index 9afae39..088cc20 100644 --- a/setup.sh +++ b/setup.sh @@ -50,28 +50,10 @@ echo 'export GRADLE_HOME=$HOME/programs/gradle' >> ~/.profile echo 'export PATH="$PATH:$GROOVY_HOME/bin:$GRADLE_HOME/bin"' >> ~/.profile # Setup Nim -cd ~/programs -git clone https://github.com/nim-lang/Nim.git nim -cd nim -git clone --depth 1 https://github.com/nim-lang/csources -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 - +curl https://nim-lang.org/choosenim/init.sh -sSf | sh +chmod +x ~/.choosenim/toolchains/*/bin/ +echo 'export PATH="$PATH:$HOME/.nimble/bin"' >> ~/.profile +export PATH="$PATH:$HOME/.nimble/bin" source ~/.profile