Creating a nix flake for unsupported targets / platforms

I’ve got a project that targets the Blackberry RTOS ‘QNX’; The toolchain (and use of the OS) requires a license so obviously support for it isn’t present, but I’d still like to try and build this project using nix.

Currently, the project builds using CMake, with dependencies managed by Conan.

First of all, is it worthwhile? (e.g. reasonably possible)
If so… would somebody please point me at some examples or documentation to get me started?

I’m comfortable with driving a toolchain directly from Nix, but particularly am struggling with how to handle dependencies managed by Conan & Artifactory.