Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created July 27, 2019 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idontgetoutmuch/574c2ae83f185043dd6db35d06639046 to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/574c2ae83f185043dd6db35d06639046 to your computer and use it in GitHub Desktop.
{ 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