As a dependency for my game, I want to list my own fork of a nimble dependency. Subsequently, I want my game to use the local copy of that fork for easy development
The nimble dependency I forked is chipmunk7
My fork is at https://github.com/ninovanhooff/nim-chipmunk-playdate
Note that my fork is not listed in the Nimble directory
The original, listed dependency is at https://github.com/avahe-kellenberger/nim-chipmunk
In my fork's local copy, I executed
❯ nimble develop
Verifying dependencies for chipmunk7@#head
Prompt: chipmunk7@#head already exists. Overwrite? [y/N]
Answer: y
Success: chipmunk7 linked successfully to '/Users/ninovanhooff/PlaydateProjects/nim-chipmunk-playdate'.
This is my game's Nim file
# Package
version = "0.2.0"
author = "Nino van Hooff"
description = "A motorcross themed physics game for the Playdate handheld."
license = "MIT"
srcDir = "src"
bin = @["wheelsprung"]
# Dependencies
requires "nim >= 1.6.10"
requires "playdate"
requires "https://github.com/ninovanhooff/nim-chipmunk-playdate"
include playdate/build/nimble
When I compile my game like this, this is the command
Executing /Users/ninovanhooff/.nimble/bin/nim c --colors:on --noNimblePath -d:simulator -d:debug -d:NimblePkgVersion=0.2.0 --path:/Users/ninovanhooff/PlaydateProjects/playdate-nim/src --path:/Users/ninovanhooff/.nimble/pkgs/chipmunk7-7.0.3 -o:/Users/ninovanhooff/PlaydateProjects/wheelsprung/wheelsprung /Users/ninovanhooff/PlaydateProjects/wheelsprung/src/wheelsprung.nim
Note that the chipmunk7 path points to a directory in .nimble/pkgs, while I expected that to be /Users/ninovanhooff/PlaydateProjects/nim-chipmunk-playdate
Now, when I change the requires line to requires "chipmunk7", it will work correctly on my machine. But other people who build my game will be directed to the nimble7 in the Nimble Directory, which is not compatible.
How do I keep the dependency on my github url while also allowing me to do local development?