or-tools: improve darwin build

This commit is contained in:
Alexis Hildebrandt 2024-06-07 07:59:17 +02:00
parent dc2c173086
commit ee1454fc7d
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
, bzip2
, cbc
, cmake
, DarwinTools # sw_vers
, eigen
, ensureNewerSourcesForZipFilesHook
, fetchFromGitHub
@ -72,6 +73,8 @@ stdenv.mkDerivation rec {
python.pythonOnBuildForHost
swig4
unzip
] ++ lib.optionals stdenv.isDarwin [
DarwinTools
] ++ (with python.pythonOnBuildForHost.pkgs; [
pip
mypy-protobuf

View File

@ -38174,6 +38174,7 @@ with pkgs;
osi = callPackage ../development/libraries/science/math/osi { };
or-tools = callPackage ../development/libraries/science/math/or-tools {
inherit (darwin) DarwinTools;
stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
python = python3;
protobuf = protobuf_21;