cmdstan: fix build on darwin
This commit is contained in:
parent
8b8e7483ca
commit
4e1ebe4f37
@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkInputs = [ python3 ];
|
checkInputs = [ python3 ];
|
||||||
|
|
||||||
|
CXXFLAGS = lib.optionalString stdenv.isDarwin "-D_BOOST_LGAMMA";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace stan/lib/stan_math/make/libraries \
|
substituteInPlace stan/lib/stan_math/make/libraries \
|
||||||
--replace "/usr/bin/env bash" "bash"
|
--replace "/usr/bin/env bash" "bash"
|
||||||
@ -42,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
preFixup = "rm -rf $(pwd)";
|
preFixup = "rm -rf $(pwd)";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
||||||
description = "Command-line interface to Stan";
|
description = "Command-line interface to Stan";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Stan is a probabilistic programming language implementing full Bayesian
|
Stan is a probabilistic programming language implementing full Bayesian
|
||||||
|
Loading…
Reference in New Issue
Block a user