mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 13:43:50 +00:00
Merge pull request #317930 from afh/improve-gdcm-ortools-darwin-build
gdcm, or-tools: improve darwin build
This commit is contained in:
commit
9d13dbb1ef
@ -6,6 +6,7 @@
|
||||
, vtk
|
||||
, ApplicationServices
|
||||
, Cocoa
|
||||
, DarwinTools # sw_vers
|
||||
, libiconv
|
||||
, enablePython ? false
|
||||
, python ? null
|
||||
@ -50,7 +51,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
] ++ lib.optional stdenv.isDarwin DarwinTools;
|
||||
|
||||
buildInputs = [
|
||||
expat
|
||||
|
@ -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
|
||||
|
@ -20902,6 +20902,7 @@ with pkgs;
|
||||
};
|
||||
|
||||
gdcm = callPackage ../development/libraries/gdcm {
|
||||
inherit (darwin) DarwinTools;
|
||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices Cocoa;
|
||||
};
|
||||
|
||||
@ -38182,6 +38183,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;
|
||||
|
Loading…
Reference in New Issue
Block a user