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