diff options
Diffstat (limited to 'pkgs/development/r-modules/generic-builder.nix')
-rw-r--r-- | pkgs/development/r-modules/generic-builder.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/r-modules/generic-builder.nix b/pkgs/development/r-modules/generic-builder.nix index ecbd78c4057d..6e3f93f52321 100644 --- a/pkgs/development/r-modules/generic-builder.nix +++ b/pkgs/development/r-modules/generic-builder.nix @@ -5,10 +5,10 @@ stdenv.mkDerivation ({ buildInputs = buildInputs ++ [R gettext] ++ lib.optionals requireX [util-linux xvfb-run] ++ - lib.optionals stdenv.isDarwin [Cocoa Foundation gfortran libiconv]; + lib.optionals stdenv.hostPlatform.isDarwin [Cocoa Foundation gfortran libiconv]; env.NIX_CFLAGS_COMPILE = - lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; + lib.optionalString stdenv.hostPlatform.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; enableParallelBuilding = true; |