diff options
author | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2018-02-05 22:15:12 +0900 |
---|---|---|
committer | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2018-02-06 18:57:12 +0900 |
commit | f4a031c63f3684544cdb08da1df5d9a6d8cb40e8 (patch) | |
tree | 4377ee830c6d5c9b7fc971814f043d4ed9074ef0 /pkgs/applications/science/math | |
parent | 42b9b8f7c8687cb26e69c3559e0e1346fb0e680f (diff) | |
download | nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.tar nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.tar.gz nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.tar.bz2 nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.tar.lz nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.tar.xz nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.tar.zst nixlib-f4a031c63f3684544cdb08da1df5d9a6d8cb40e8.zip |
R: add libcxx to default LDFLAGS and CPPFLAGS on Darwin
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r-- | pkgs/applications/science/math/R/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index 725b3f342c3e..7bd19cfc520e 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, bzip2, gfortran, libX11, libXmu, libXt, libjpeg, libpng , libtiff, ncurses, pango, pcre, perl, readline, tcl, texLive, tk, xz, zlib , less, texinfo, graphviz, icu, pkgconfig, bison, imake, which, jdk, openblas -, curl, Cocoa, Foundation, cf-private, libobjc, tzdata, fetchpatch +, curl, Cocoa, Foundation, cf-private, libobjc, libcxx, tzdata, fetchpatch , withRecommendedPackages ? true , enableStrictBarrier ? false }: @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { pango pcre perl readline texLive xz zlib less texinfo graphviz icu pkgconfig bison imake which jdk openblas curl ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ tcl tk ] - ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation libobjc ]; + ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation libobjc libcxx ]; patches = [ ./no-usr-local-search-paths.patch ]; @@ -55,6 +55,8 @@ stdenv.mkDerivation rec { --without-aqua --disable-R-framework OBJC="clang" + CPPFLAGS="-isystem ${libcxx}/include/c++/v1" + LDFLAGS="-L${libcxx}/lib" '' + '' ) echo >>etc/Renviron.in "TCLLIBPATH=${tk}/lib" |