Merge master into staging-next
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{ stdenv, lib, R, libcxx, xvfb_run, util-linux, Cocoa, Foundation, gettext, gfortran }:
|
||||
{ stdenv, lib, R, libcxx, xvfb-run, util-linux, Cocoa, Foundation, gettext, gfortran }:
|
||||
|
||||
{ name, buildInputs ? [], requireX ? false, ... } @ attrs:
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
buildInputs = buildInputs ++ [R gettext] ++
|
||||
lib.optionals requireX [util-linux xvfb_run] ++
|
||||
lib.optionals requireX [util-linux xvfb-run] ++
|
||||
lib.optionals stdenv.isDarwin [Cocoa Foundation gfortran];
|
||||
|
||||
NIX_CFLAGS_COMPILE =
|
||||
@@ -29,7 +29,7 @@ stdenv.mkDerivation ({
|
||||
rCommand = if requireX then
|
||||
# Unfortunately, xvfb-run has a race condition even with -a option, so that
|
||||
# we acquire a lock explicitly.
|
||||
"flock ${xvfb_run} xvfb-run -a -e xvfb-error R"
|
||||
"flock ${xvfb-run} xvfb-run -a -e xvfb-error R"
|
||||
else
|
||||
"R";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user