GrabNim
GrabNim is a simple tool to install, manage and switch between different versions of
the Nim compiler.
Usage
Usage:
grabnim install and switch to latest stable version of compiler
grabnim <version> install and switch to specific version of compiler
grabnim compile <version> compile nim from sources and switch to this version
grabnim del <version> delete local version of compiler
grabnim fetch list remote available versions
grabnim list list local installed versions
grabnim help display this help message
Versions:
<version> is 3 numbers separated by a dot: 'x.x.x' or 'devel'
Installation
- Download a binary for your OS from releases.
- Add grabnim to 'PATH' env (see this gist for instructions):
grabnim path should be placed after your nimble path if you want nimble packages to take precedence
e.g. if you want to use latest nimble installed by nimble install nimble instead of one that comes bundled with compiler.
Examples:
- Linux:
export PATH="$HOME/.local/share/grabnim/current/bin:$PATH"
export PATH="$HOME/.nimble/bin:$PATH"
# order might look wrong, but it is correct: "<nimble>:<grabnim>:$PATH"
- Windows:
%USERPROFILE%\.nimble\bin
%LOCALAPPDATA%\grabnim\current\bin
- MacOS:
$HOME/.nimble/bin
$HOME/.local/share/grabnim/current/bin
- Run grabnim from terminal with full path or put binary/symlink in directory that's in PATH (e.g. .nimble/bin).
Building
- Clone the repository:
git clone [https://codeberg.org/janAkali/grabnim.git](https://codeberg.org/janAkali/grabnim.git)
cd grabnim
- Compile with Nim:
nim c -d:ssl -d:release grabnim
License
This project is licensed under the MIT License. See the LICENSE file for details.