-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
57 lines (56 loc) · 1.33 KB
/
shell.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
53
54
55
56
57
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
simquantgen = pkgs.rPackages.buildRPackage {
name = "simquantgen";
src = pkgs.fetchFromGitHub {
owner = "jeffersonfparil";
repo = "simquantgen";
rev = "fed3612a22afa70e3bea758addbe0da421fad7ce";
sha256 = "sha256-ZGGKV7eR6u7ll4ulejyS0hoji20s4tIjqiyncalZ3Og=";
};
propagatedBuildInputs = with rPackages; [
MASS
doParallel
foreach
txtplot
];
}; ### Use lib.fakeSha256 on "sha256" to get the correct code from the error messages
my-r-pkgs = rWrapper.override {
packages = with rPackages; [
remotes
devtools
testthat
vcfR
stringr
txtplot
glmnet
BGLR
sommer
MASS
parallel
doParallel
foreach
shiny
shinyWidgets
shinyFiles
shinycssloaders
plotly
bslib
DBI
RSQLite
simquantgen
];
};
in mkShell {
buildInputs = with pkgs; [git glibcLocales openssl which openssh curl wget ];
inputsFrom = [ my-r-pkgs ];
shellHook = ''
mkdir -p "$(pwd)/_libs"
export R_LIBS_USER="$(pwd)/_libs"
'';
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
# LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux
# "${glibcLocales}/lib/locale/locale-archive";
}
### nix-shell --run bash --pure