Switch to choosenim instead of manually building it.
This commit is contained in:
parent
e123b1569a
commit
55103b47cd
26
setup.sh
26
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user