Created
July 27, 2019 08:53
-
-
Save idontgetoutmuch/574c2ae83f185043dd6db35d06639046 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
{ nixpkgs ? import ./nix/nixpkgs.nix {} }: | |
let | |
haskellDeps = ps: with ps; [ | |
inline-r | |
]; | |
ghc = nixpkgs.haskellPackages.ghcWithPackages haskellDeps; | |
R-with-my-packages = nixpkgs.rWrapper.override { | |
packages = with nixpkgs.rPackages; [ ggplot2 dplyr xts ]; | |
}; | |
nixPackages = [ | |
ghc | |
R-with-my-packages | |
# nixpkgs.R | |
# nixpkgs.rPackages.dplyr | |
]; | |
in | |
nixpkgs.stdenv.mkDerivation { | |
name = "env"; | |
buildInputs = nixPackages; | |
executableHaskellDepends = [ R-with-my-packages | |
# nixpkgs.R | |
# nixpkgs.rPackages.dplyr | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment