-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealth.nix
38 lines (36 loc) · 1.73 KB
/
health.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/heads/master.tar.gz") {};
#pkgs = import (fetchTarball "https://github.com/b-rodrigues/nixpkgs/archive/35b1c5a3a321470b0245cd8a0d58d24955026397.tar.gz") {};
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales nix;
};
r_packages = builtins.attrValues {
inherit (pkgs.rPackages)
callr ps bit64 rstudioapi bit vroom broom systemfonts clipr rematch2
ggplot2 arrow duckdb collapse kit icosa sf terra stars devtools openssl
haven rematch knitr munsell RColorBrewer readxl colorspace generics tzdb
later dplyr cli fs evaluate crayon mime ragg cachem tinytex fontawesome
lubridate processx data_table yaml rappdirs httr readr hms highr textshaping
memoise RcppEigen nloptr igraph rJava RCurl RSQLite rstan rlang lifecycle
shiny dbplyr base64enc prettyunits xml2 progress askpass sys rhdf5
tidyr curl cpp11 DBI rprojroot backports gargle blob selectr promises
Rcpp xfun stringr tidyselect tidyverse htmltools purrr stringi
timechange cellranger modelr zoo forcats rvest htmlwidgets scales pkgconfig
vctrs glue tibble pillar jsonlite magrittr withr R6 fansi utf8 fastmap bslib
viridisLite gtable sass labeling isoband rmarkdown digest jquerylib farver
;
};
wrapped_pkgs = pkgs.rWrapper.override {
packages = [ r_packages ];
};
in
pkgs.mkShell {
LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then "${pkgs.glibcLocales}/lib/locale/locale-archive" else "";
LANG = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
buildInputs = [ system_packages r_packages wrapped_pkgs ];
}