nixpkgs cmake uses NIXPKGS_CMAKE_PREFIX_PATH rather than CMAKE_PREFIX_PATH env to specify module search paths. Add the env variable to meson to allow finding modules via cmake to work.
···31 };
3233 patches = [
00034 # In typical distributions, RPATH is only needed for internal libraries so
35 # meson removes everything else. With Nix, the locations of libraries
36 # are not as predictable, therefore we need to keep them in the RPATH.
···31 };
3233 patches = [
34+ # Nixpkgs cmake uses NIXPKGS_CMAKE_PREFIX_PATH for the search path
35+ ./000-nixpkgs-cmake-prefix-path.patch
36+37 # In typical distributions, RPATH is only needed for internal libraries so
38 # meson removes everything else. With Nix, the locations of libraries
39 # are not as predictable, therefore we need to keep them in the RPATH.