pietroppeter / nimib

nimib 🐳 - nim 👑 driven ⛵ publishing ✍
https://pietroppeter.github.io/nimib/
MIT License
175 stars 10 forks source link

paths.nim: Fix import for FreeBSD #238

Closed lbartoletti closed 3 months ago

lbartoletti commented 3 months ago

compiler doesn't seem to be standard. At least, in FreeBSD, it's in ${LOCALBASE}/nim/lib/compiler where ${LOCALBASE} is /usr/local by default.

Add a when defined to import pathutils on FreeBSD.

pietroppeter commented 3 months ago

Thanks for this, there is indeed a related issue https://github.com/pietroppeter/nimib/issues/62 that I thought it was only arch specific but it turns out it might affect also freeBSD. I am not planning to test this but it looks a reasonable change and hopefully it helps on your side.

Looks ok for me, if @HugoGranstrom cannot come up with objections I would merge it.

HugoGranstrom commented 3 months ago

Yes looks good to me as well 👌

lbartoletti commented 3 months ago

hopefully it helps on your side

Yes, it helps me and I'm starting to write my blog, and documentation with it :)

And... thanks to you and hugo for these tools!