summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/cmdstan
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-06-18 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2022-06-18 04:20:00 +0000
commit4e1ebe4f37358a6b7fd01fea457c509fc3b4948a (patch)
tree549510ba1c3d727ac60e0435643d2cc0ff4c79f0 /pkgs/development/compilers/cmdstan
parent8b8e7483ca4202f95c7b3459f35199b2e6fb166f (diff)
cmdstan: fix build on darwin
Diffstat (limited to 'pkgs/development/compilers/cmdstan')
-rw-r--r--pkgs/development/compilers/cmdstan/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/compilers/cmdstan/default.nix b/pkgs/development/compilers/cmdstan/default.nix
index 45ab576878cf..7070d3d5394b 100644
--- a/pkgs/development/compilers/cmdstan/default.nix
+++ b/pkgs/development/compilers/cmdstan/default.nix
@@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
doCheck = true;
checkInputs = [ python3 ];
+ CXXFLAGS = lib.optionalString stdenv.isDarwin "-D_BOOST_LGAMMA";
+
postPatch = ''
substituteInPlace stan/lib/stan_math/make/libraries \
--replace "/usr/bin/env bash" "bash"
@@ -42,7 +44,7 @@ stdenv.mkDerivation rec {
preFixup = "rm -rf $(pwd)";
meta = {
- broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
+ broken = stdenv.isLinux && stdenv.isAarch64;
description = "Command-line interface to Stan";
longDescription = ''
Stan is a probabilistic programming language implementing full Bayesian