Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created August 4, 2019 10:01
Show Gist options
  • Select an option

  • Save idontgetoutmuch/e8a947d770a46e9c73ef76bcd155d6d2 to your computer and use it in GitHub Desktop.

Select an option

Save idontgetoutmuch/e8a947d770a46e9c73ef76bcd155d6d2 to your computer and use it in GitHub Desktop.
let
pkgs = {
ihaskell = builtins.fetchTarball {
url = "https://github.com/gibiansky/IHaskell/tarball/bb2500c448c35ca79bddaac30b799d42947e8774";
sha256 = "1n4yqxaf2xcnjfq0r1v7mzjhrizx7z5b2n6gj1kdk2yi37z672py";
};
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/tarball/49dc8087a20e0d742d38be5f13333a03d171006a";
sha256 = "1fdnqm4vyj50jb2ydcc0nldxwn6wm7qakxfhmpf72pz2y2ld55i6";
};
};
rOverlay = rself: rsuper: {
myR = rsuper.rWrapper.override {
packages = with rsuper.rPackages; [ ggplot2 dplyr xts purrr ];
};
};
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc864";
nixpkgs = import pkgs.nixpkgs { overlays = [ rOverlay ]; };
packages = self: [ self.inline-r ];
systemPackages = self: [ self.myR ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment