Since the CEMU Wii U emulator has just gone open-source and should now technically build on Linux, I had a quick look at how difficult it is to package it for inclusion in nixpkgs.
Unfortunately, their CMake project seems to rely on Vcpkg, which complicates things in nix-land.
Is there a default strategy or a good example of dealing with CMake projects that use Vcpkg?
My initial strategy consisted simply of removing from the following lines from the CMake project, thereby not loading the Vcpkg toolchain file:
set(VCPKG_OVERLAY_PORTS "${CMAKE_CURRENT_LIST_DIR}/dependencies/vcpkg_overlay_ports")
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dependencies/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")
But this caused (predictably) so many of issues with all the previously specified find_package
declarations that I’m wondering if this is the right way to go about things.
Does anyone have any example packages they’ve worked on previously?