This is a Heroku buildpack for Nim apps. It uses Nimble for dependency management.
The buildpack expects you to include a .nimble
file in order to download dependencies and build your app.
Be sure to set the bin value on your nimble file to the executable name for your app.
And create a Procfile
with a process to run for your executable:
web: ./main
Create an app using this buildpack
heroku create --stack cedar --buildpack https://github.com/vic/heroku-buildpack-nim.git
If you want to use an specific Nim version use the NIM_BRANCH
environment variable.
heroku config:set NIM_BRANCH=devel
Note by OMF: This won't work in this fork due to the changes I made to install Nim from the binary release tarballs.
An example nimble app lives here