diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-06-09 11:43:00 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-06-09 11:43:00 -0500 |
commit | b120a737fd3f2871af7d57c88c010884041ce6d4 (patch) | |
tree | f8fab890b991cc6fd9559029cb4fc4251d346bc1 /pkgs/development/r-modules | |
parent | 71b848b45dc58d7e75eb7f07b214fb8c62e5f58d (diff) | |
download | nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.tar nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.tar.gz nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.tar.bz2 nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.tar.lz nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.tar.xz nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.tar.zst nixlib-b120a737fd3f2871af7d57c88c010884041ce6d4.zip |
rPackages.BayesLogit: build with openblas
Diffstat (limited to 'pkgs/development/r-modules')
-rw-r--r-- | pkgs/development/r-modules/default.nix | 1 | ||||
-rw-r--r-- | pkgs/development/r-modules/patches/BayesLogit_cblas.patch | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 11d7193edee7..4bad1224cc1a 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -1087,6 +1087,7 @@ let BayesLogit = old.BayesLogit.overrideDerivation (attrs: { patches = [ ./patches/BayesLogit.patch ]; + buildInputs = (attrs.buildInputs or []) ++ [ pkgs.openblasCompat ]; }); BayesBridge = old.BayesBridge.overrideDerivation (attrs: { diff --git a/pkgs/development/r-modules/patches/BayesLogit_cblas.patch b/pkgs/development/r-modules/patches/BayesLogit_cblas.patch index 4c8778c46976..ef776f3531da 100644 --- a/pkgs/development/r-modules/patches/BayesLogit_cblas.patch +++ b/pkgs/development/r-modules/patches/BayesLogit_cblas.patch @@ -6,7 +6,7 @@ diff -ru -x '*~' BayesLogit_orig/src/Makevars BayesLogit/src/Makevars OBJECTS = Matrix.o MatrixFrame.o RRNG.o RNG.o FSF_nmix.o LogitWrapper.o \ PolyaGamma.o PolyaGammaAlt.o PolyaGammaSP.o InvertY.o -PKG_LIBS = $(BLAS_LIBS) $(FLIBS) $(LAPACK_LIBS) -+PKG_LIBS = $(BLAS_LIBS) $(FLIBS) $(LAPACK_LIBS) -llapack -lf77blas -lcblas -latlas -lgfortran ++PKG_LIBS = $(BLAS_LIBS) $(FLIBS) $(LAPACK_LIBS) -lopenblas # PKG_CPPFLAGS = -DUSE_R -DNDEBUG -DDISABLE_SINGLE -DNTHROW -Wall -pedantic -Wextra PKG_CPPFLAGS = -DUSE_R -DNDEBUG -DDISABLE_SINGLE -DNTHROW |