nixpkgs/pkgs/development/r-modules/default-overrides.nix

147 lines
4 KiB
Nix
Raw Normal View History

stdenv: pkgs: old: new: {
RcppArmadillo = old.RcppArmadillo.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patchPhase = "patchShebangs configure";
});
rpf = old.rpf.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patchPhase = "patchShebangs configure";
});
BayesXsrc = old.BayesXsrc.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/BayesXsrc.patch ];
});
rJava = old.rJava.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
preConfigure = ''
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/
export JAVA_HOME=${pkgs.jdk}
'';
});
JavaGD = old.JavaGD.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
preConfigure = ''
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/
export JAVA_HOME=${pkgs.jdk}
'';
});
Mposterior = old.Mposterior.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
PKG_LIBS = "-L${pkgs.atlas}/lib -lf77blas -latlas";
});
qtbase = old.qtbase.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/qtbase.patch ];
});
Rmpi = old.Rmpi.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
configureFlags = [
"--with-Rmpi-type=OPENMPI"
];
});
npRmpi = old.npRmpi.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
configureFlags = [
"--with-Rmpi-type=OPENMPI"
];
});
Rmpfr = old.Rmpfr.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
configureFlags = [
"--with-mpfr-include=${pkgs.mpfr}/include"
];
});
RVowpalWabbit = old.RVowpalWabbit.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
configureFlags = [
"--with-boost=${pkgs.boost.dev}" "--with-boost-libdir=${pkgs.boost.lib}/lib"
];
});
RAppArmor = old.RAppArmor.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/RAppArmor.patch ];
LIBAPPARMOR_HOME = "${pkgs.apparmor}";
});
RMySQL = old.RMySQL.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
configureFlags = [
"--with-mysql-dir=${pkgs.mysql}"
];
});
slfm = old.slfm.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
PKG_LIBS = "-L${pkgs.atlas}/lib -lf77blas -latlas";
});
SamplerCompare = old.SamplerCompare.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
PKG_LIBS = "-L${pkgs.atlas}/lib -lf77blas -latlas";
});
gputools = old.gputools.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/gputools.patch ];
CUDA_HOME = "${pkgs.cudatoolkit}";
});
# It seems that we cannot override meta attributes with overrideDerivation.
CARramps = (old.CARramps.override { hydraPlatforms = stdenv.lib.platforms.none; }).overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/CARramps.patch ];
configureFlags = [
"--with-cuda-home=${pkgs.cudatoolkit}"
];
});
gmatrix = old.gmatrix.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/gmatrix.patch ];
CUDA_LIB_PATH = "${pkgs.cudatoolkit}/lib64";
R_INC_PATH = "${pkgs.R}/lib/R/include";
CUDA_INC_PATH = "${pkgs.cudatoolkit}/usr_include";
});
# It seems that we cannot override meta attributes with overrideDerivation.
rpud = (old.rpud.override { hydraPlatforms = stdenv.lib.platforms.none; }).overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/rpud.patch ];
CUDA_HOME = "${pkgs.cudatoolkit}";
});
WideLM = old.WideLM.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/WideLM.patch ];
configureFlags = [
"--with-cuda-home=${pkgs.cudatoolkit}"
];
});
EMCluster = old.EMCluster.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/EMCluster.patch ];
});
spMC = old.spMC.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/spMC.patch ];
});
BayesLogit = old.BayesLogit.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/BayesLogit.patch ];
});
BayesBridge = old.BayesBridge.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/BayesBridge.patch ];
});
openssl = old.openssl.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/openssl.patch ];
OPENSSL_HOME = "${pkgs.openssl}";
});
Rserve = old.Rserve.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
patches = [ ./patches/Rserve.patch ];
configureFlags = [
"--with-server" "--with-client"
];
});
nloptr = old.nloptr.overrideDerivation (attrs: {
2014-11-21 13:23:36 +00:00
configureFlags = [
"--with-nlopt-cflags=-I${pkgs.nlopt}/include"
"--with-nlopt-libs='-L${pkgs.nlopt}/lib -lnlopt_cxx -lm'"
];
});
}