Hello everyone!
I have xerces as a dependency on one of my current C++ projects. My goal is to have a Nix development environment for my team; The problem comes when dealing with cmake. When I have cmake install from apt, I have a bunch of FindPackages modules into the directory /usr/share/cmake.../Modules
. One of them is FindXercesC.cmake
. I found that when you include cmake derivation as your dependency, cmake does not include those modules. I see that some projects directly add the cmake as a new derivation kde extra-cmake-modules
Also, I found that another project, such as pugixml, manages that from the cmake itself by adding that information to the $build/lib
. Since this is coupled with the building process of the libraries, I found this approach very hard to accomplish for most of them unless you include patches. I was trying to figure out the best way to process it. For the xerces, I know I can get that information from the $src directory, but I wanna know if this is also valuable for most of you guys if you consider it good enough to push into nixpkgs. Another approach was to have inside of the cmake derivations for the modules (using the same way as the nerd-fonts).
cheers!