Explicitly link against needed Nix libraries to fix compilation on Mac
Dependencies
- [2]
7YS2X7JJFix compilation against older Nix versions (tested with 2.13.6) - [3]
3KEFKH5FImport existing code - [4]
UZYI7CB2Fix compile errors on macOS in dev shell
Change contents
- replacement in CMakeLists.txt at line 23
pkg_check_modules(Nix REQUIRED IMPORTED_TARGET nix-main)pkg_check_modules(Nix REQUIRED IMPORTED_TARGET nix-main nix-store)find_library(nixfetchers_LIBRARY nixfetchers REQUIRED)target_link_libraries(PkgConfig::Nix INTERFACE ${nixfetchers_LIBRARY}) - edit in CMakeLists.txt at line 27
set(Nix_VERSION ${Nix_nix-main_VERSION})