Created
April 5, 2021 10:52
-
-
Save idontgetoutmuch/c5c5052d0e5a905ace1c77ae8eb5ebe8 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
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