Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created April 5, 2021 10:52
Show Gist options
  • Save idontgetoutmuch/c5c5052d0e5a905ace1c77ae8eb5ebe8 to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/c5c5052d0e5a905ace1c77ae8eb5ebe8 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
cmaes
cubature
];
};
R = rsuper.R.overrideAttrs (oldAttrs: {
configureFlags = [ "--without-x" ];
});
myHaskellPackages = rsuper.haskellPackages.override {
overrides = hself: hsuper: rec {
inline-r = hsuper.inline-r;
};
};
};
in
let
nixpkgs = import <nixpkgs> { config.allowBroken = true; overlays = [ rOverlay ]; };
haskellDeps = ps: with ps; [
Frames
(nixpkgs.haskell.lib.dontCheck inline-r)
lens text vinyl
];
in
nixpkgs.stdenv.mkDerivation {
name = "env";
buildInputs = [
(nixpkgs.myHaskellPackages.ghcWithPackages haskellDeps)
nixpkgs.myR
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment