-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.nix
47 lines (43 loc) · 1.06 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
let derivation = import ./default.nix; in
with (import (builtins.fetchTarball {
name = "nixpkgs-21.11";
# Tarball of tagged release of Nixpkgs 21.11
url = "https://github.com/NixOS/nixpkgs/archive/22.05.tar.gz";
# Tarball hash obtained using `nix-prefetch-url --unpack <url>`
sha256 = "0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik";
}) {});
stdenvNoCC.mkDerivation rec {
name = "elpd-env";
cmdstanr = pkgs.rPackages.buildRPackage {
name = "cmdstanr";
# src = fetchTarball "https://github.com/stan-dev/cmdstanr/archive/refs/tags/v0.4.0.tar.gz";
src = fetchTarball "https://github.com/stan-dev/cmdstanr/archive/refs/tags/v0.5.2.tar.gz";
propagatedBuildInputs = [];
nativeBuildInputs = with pkgs.rPackages; [
gcc
checkmate
jsonlite
processx
R6
vroom
data_table
posterior
];
};
buildInputs = with pkgs.rPackages; [
tidyverse
loo
abind
distributional
tensorA
jsonlite
data_table
posterior
] ++ [
cmdstanr
R
gcc
python3
gfortran
];
}