-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
52 lines (46 loc) · 1.3 KB
/
default.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This file was generated by the {rix} R package v0.13.5 on 2024-12-06
# with following call:
# >rix(r_ver = "6f3340bf0f888d0fda9a3b91dd5b3a9b05d08212",
# > r_pkgs = c("dplyr",
# > "kableExtra",
# > "magrittr",
# > "desc",
# > "purrr",
# > "renv"),
# > system_pkgs = NULL,
# > ide = "code",
# > project_path = ".",
# > overwrite = TRUE,
# > print = TRUE)
# It uses nixpkgs' revision 6f3340bf0f888d0fda9a3b91dd5b3a9b05d08212 for reproducibility purposes
# which will install R version 4.4.0.
# Report any issues to https://github.com/ropensci/rix
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/6f3340bf0f888d0fda9a3b91dd5b3a9b05d08212.tar.gz") {};
rpkgs = builtins.attrValues {
inherit (pkgs.rPackages)
desc
dplyr
kableExtra
languageserver
magrittr
purrr
renv;
};
system_packages = builtins.attrValues {
inherit (pkgs)
glibcLocales
nix
R;
};
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 = [ rpkgs system_packages ];
}