rPackages: Implement overlay infrastructure

This commit is contained in:
Tyson Whitehead
2018-11-28 21:58:11 -05:00
parent 7f6c635426
commit 5e1a6acb68
5 changed files with 24 additions and 0 deletions

View File

@@ -18,4 +18,16 @@ self: super: pkgs: with pkgs; {
python36 = super.python36.override { packageOverrides = pythonOverrides; };
pythonOverrides = import ./python-packages.nix pkgs;
# same for R as Python (except we have to do the self/super plumbing)
rPackages = super.rPackages.override {
overrides =
let
overrides = rOverrides self super.rPackages;
self = super.rPackages // overrides;
in
overrides;
};
rOverrides = import ./r-modules.nix pkgs;
}

3
temporary/r-modules.nix Normal file
View File

@@ -0,0 +1,3 @@
pkgs: self: super: with self; {
}