Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created August 4, 2019 12:17
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/e33b48791c88311bb5083bacd97fd133 to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/e33b48791c88311bb5083bacd97fd133 to your computer and use it in GitHub Desktop.
let
rOverlay = rself: rsuper: {
myR = rsuper.rWrapper.override {
packages = with rsuper.rPackages; [
ggplot2
dplyr
xts
purrr
];
};
};
haskellOverlay = hself: hsuper: {
my-inline-r = hself.haskell.lib.dontCheck (hsuper.haskellPackages.inline-r);
};
in
let
pkgs = import <nixpkgs> { overlays = [ rOverlay haskellOverlay ]; };
h = pkgs.haskellPackages.extend (self: super: {
my-inline-r = super.inline-r;
});
in
pkgs.mkShell {
buildInputs = [
pkgs.myR
(h.ghcWithPackages (p: [ pkgs.haskell.lib.dontCheck p.my-inline-r ]))
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment