Since the issues with Nim 1.6.8 (https://forum.nim-lang.org/t/9495), I have been forced to stick to 1.6.6 - until further notice, that is.
However, since I have CI actions using the default (1.6.8) package, now I'm struggling with moving back to 1.6.6. Especially with FreeBSD.
My current workflow is here: https://github.com/arturo-lang/arturo/blob/master/.github/workflows/freebsd.yml#L50
Basically, I'm installing Nim via pkg install nim ... (which pulls 1.6.8).
I've tried with nim-1.6.6 or something along these lines, but without any effect. And obviously, I have no idea how FreeBSD's package system works.
Is there any easier way to do what I'm trying to or will I have to "manually" build the previous one?
nim c --os:freebsd --compileOnly --nimcache:. nim.nim
gcc -c *.nim.c
gcc *.o -o nim
In the past I've been able to use ports-mgmt/portdowngrade to downgrade ports to older versions. I haven't used this in a while, so I don't know if it still works since the move to git, but it might be worth a go.
Failing that, you could just patch the lang/nim port to use the previous version. The diff is here: https://cgit.freebsd.org/ports/commit/?id=97fa651b911b8fdea521278404dbcd3378ea2415
Another option might be to use the quarterly package branch instead of latest as it might still have the last version, since I only updated the port a week or so ago.