Guidance on packaging Ruby gem `nokolexbor` in Nixpkgs

Hello everyone,

I’d like to package the Ruby gem nokolexbor in Nixpkgs, but I ran into a problem.

Gem details:

Issue:

  • Nokolexbor includes a native C extension that links against the Lexbor C library. (The good news is that lexbor is already packaged in Nix.)
  • Its build also requires CMake, which does not seem to be automatically handled by the standard Ruby gem packaging in Nixpkgs.

Question:

Given these native dependencies, what is the recommended approach for packaging this gem in Nixpkgs?

Any guidance would be greatly appreciated!