ChooseNim template

I realize that I’m probably the only person using nim on replit, judging from this, but I had some issues with the official nim template so I made my own. If anyone else decides to use nim on replit and encounters one of the issues below, remember this template exists. And for anyone else, you can take a look around, this took me awhile and I’m quite proud of it. (Try looking in shell.nix, I haven’t seen many project use it)

Issues with the official version

  • Nim version outdated (1.4.8)
  • Nimble packages disappear on reload.

This template includes:

  • A basic hello world program
  • Fixed issues of the official version above

Link

https://replit.com/@dragonhunter1/ChooseNim?v=1#README.md

3 Likes

Thank you for sharing this @dragonhunter1 !

2 Likes

Update

  • The template now comes with built-in std/httpclient support via OpenSSL!
  • All the required packages for the template are also marked in shell.nix
  • Still waiting for review to get onto /templates
  • Bugfix, now nimv.txt and cli should work.
2 Likes

You can’t trust the searching by tags, it doesn’t show even close to everything and somehow often misses lots of Repls so you probably aren’t the only one using Nim. :slight_smile:

3 Likes

I had a look at Nim, it looks amazing! It seems like it doesn’t have much attention, but it has a lot of potential!

2 Likes

https://replit.com/@X4DE/Nim-UpToDate

I’ve also created one
Check description

Only problem is nimble is installing packages inside $NIMBLE_DIR/pkgs2 instead of $NIMBLE_DIR/pkgs.
anyway to fix that ?

Might be because of

rm -rf pkgs && 
ln -s pkgs2 pkgs && 

In run.sh

1 Like

that’s my workaround for that issue, not cause of it