mirror of
https://github.com/dwinkler1/nvimConfig.git
synced 2026-08-22 17:43:13 -04:00
fix: avoid ripgrep dependency in devShell R_LIBS_SITE hook
This commit is contained in:
parent
5c35787c68
commit
ad26b17b8c
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@
|
|||
''
|
||||
+ nixpkgs.lib.optionalString (config.cats.r or false) ''
|
||||
export R_HOME=$(R RHOME)
|
||||
export R_LIBS_SITE=$(strings "$(command -v R)" | rg -o '/nix/store/[^:]+/library' | sort -u | paste -sd: -)
|
||||
# Use R itself to discover the library paths, avoiding a dependency on
|
||||
# ripgrep/strings/grep in the devShell PATH.
|
||||
export R_LIBS_SITE=$(Rscript -e 'cat(.libPaths(), sep = ":")')
|
||||
export R_LIBS_USER="$PWD/.r-libs"
|
||||
mkdir -p "$R_LIBS_USER"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Reference in a new issue