Running nix-shell -p rPackages.textshaping --pure
generates the following error:
Error: package or namespace load failed for ‘textshaping’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/nix/store/vld4cxcxpr45ka3828x3qhx0vm3bj3gs-r-textshaping-0.3.6/library/00LOCK-textshaping/00new/textshaping/libs/textshaping.so':
dlopen(/nix/store/vld4cxcxpr45ka3828x3qhx0vm3bj3gs-r-textshaping-0.3.6/library/00LOCK-textshaping/00new/textshaping/libs/textshaping.so, 0x0006): symbol not found in flat namespace '_fribidi_log2vis'
which seems like an issue with the fribidi dependency which perhaps it not compiled using the same compiler? I also notice the following earlier message:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glib-2.0', required by 'harfbuzz', not found
however requiring glib does expose glib-2.0, I am however not sure how to check that it is available in the actual derivation.
textshaping is required to install devtools which iteself is quite a common package to include. This makes it a bit difficult to use R with nix on M1 at the moment.