{ pkgs ? import <nixpkgs> {} }: rec {
  default = pkgs.rPackages.buildRPackage {
    name = "Math104";
    version = "1.0";
    src = ./Math104_1.0.tar.gz;
    buildInputs = with pkgs.rPackages; [maps mapproj pkgs.R];
  };
  rEnv = pkgs.rWrapper.override {
    packages = with pkgs.rPackages; [ default maps mapproj ];
  };
  rstudioEnv = pkgs.rstudioWrapper.override {
    packages = with pkgs.rPackages; [ default maps mapproj ];
  };
}
