From 4d781f329ded7a99d0225e4f01fc56303b1d18ab Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 23 Jun 2022 12:37:27 -0400 Subject: [PATCH] z3_4_4_0: Fix build on darwin. --- pkgs/applications/science/logic/z3/4.4.0.nix | 2 ++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/logic/z3/4.4.0.nix b/pkgs/applications/science/logic/z3/4.4.0.nix index a3d6c16fb7df..857bbbdee5d0 100644 --- a/pkgs/applications/science/logic/z3/4.4.0.nix +++ b/pkgs/applications/science/logic/z3/4.4.0.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { buildInputs = [ python ]; enableParallelBuilding = true; + CXXFLAGS = if stdenv.isDarwin then "-std=gnu++98" else null; + configurePhase = "python scripts/mk_make.py --prefix=$out && cd build"; # z3's install phase is stupid because it tries to calculate the diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f57ddc358582..be3369ee1e70 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33631,7 +33631,7 @@ with pkgs; z3 = z3_4_8; z3_4_4_0 = callPackage ../applications/science/logic/z3/4.4.0.nix { python = python2; - stdenv = gcc49Stdenv; + stdenv = if stdenv.isDarwin then stdenv else gcc49Stdenv; }; z3-tptp = callPackage ../applications/science/logic/z3/tptp.nix {};