GrabNim is a simple tool to install and switch between different versions of the Nim compiler.
This project started as a script I wrote out of frustration with choosenim.
Features:
Comparison with choosenim:
Basic Usage:
grabnim # Install latest stable Nim
grabnim fetch # Show available versions for your OS
grabnim 2.2.4 # Install specific version
grabnim compile devel # Install from source
grabnim list # Show installed versions
Installation:
wget https://codeberg.org/janAkali/grabnim/raw/branch/master/misc/install.sh
sh install.sh
Or download from releases and setup PATH env.
Project Page: https://codeberg.org/janakali/grabnim
GrabNim makes it easy to test your code against different Nim versions. Give it a try and let me know what you think!
compile.nim module is heavily-based on nimenv.
I only had to rewire types and some git procs to grabnim internals.
Awesome work!
I was working on something similar myself, but you beat me to it :)
Demo: