-
-
Save cleverca22/45e746d700eb0ebd539f9f0244c3953b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
config = { | |
packageOverrides = pkgs: { | |
rstudio = nixos.pkgs.libsForQt5.callPackage <unstable/pkgs/applications/editors/rstudio> { }; | |
}; | |
}; | |
unstable = import <unstable> { config = config;}; #gotta use stable till qt is fixed | |
nixos = import <nixos> { }; | |
pkgs = nixos.pkgs; | |
stdenv = pkgs.stdenv; | |
latex = (with unstable.pkgs; [ texlive.combined.scheme-full biber ]) ++ (with pkgs; [ lyx texstudio ]); | |
rpackages = with pkgs.rPackages; [ | |
rstan # so im not actually sure if this and cmdstan are basically completely separate? | |
ggplot2 | |
knitr | |
gWidgets | |
gWidgetsRGtk2 | |
# tikzDevice #got latest from git via remotes:: in rstudio, TODO | |
png | |
filehash | |
RSQLite | |
]; | |
rstudio = nixos.callPackage <unstable/pkgs/development/r-modules/wrapper-rstudio.nix> { | |
packages = rpackages; | |
#cannibalizing the call from all-packages to mix versions | |
recommendedPackages = with pkgs.rPackages; [ boot class cluster codetools foreign KernSmooth lattice MASS Matrix mgcv nlme nnet rpart spatial survival ]; | |
}; | |
r = pkgs.rWrapper.override { packages = rpackages; }; | |
statistics = [(with pkgs; cmdstan)] ++ [ r rstudio ]; | |
bibliography = [(with pkgs; jabref)]; | |
dmmpython = pkgs.python27.withPackages (ps: with ps; [ numpy pyusb matplotlib ]); | |
python36 = pkgs.python36.withPackages (ps: with ps; [ ipython ]); | |
python = [ python36 dmmpython ]; | |
in | |
stdenv.mkDerivation rec { | |
name = "lab-env-${version}"; | |
version = "0.1"; | |
enableParallelBuilding = true; # does this apply recursively? | |
build-cores = 0; # 0 means auto | |
buildInputs = latex ++ statistics ++ bibliography ++ python; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment