pythonPackages.cadquery: Fix build on darwin

This commit is contained in:
Sandro Jäckel 2020-12-28 19:35:35 +01:00 committed by Jonathan Ringer
parent cce62f7b21
commit 2dbe0c21c4
2 changed files with 25 additions and 24 deletions

View File

@ -10,7 +10,6 @@
, python , python
, cmake , cmake
, swig , swig
, ninja
, smesh , smesh
, freetype , freetype
, libGL , libGL
@ -20,6 +19,7 @@
, pytest , pytest
, makeFontsConf , makeFontsConf
, freefont_ttf , freefont_ttf
, Cocoa
}: }:
let let
@ -38,7 +38,6 @@ let
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
swig swig
ninja
]; ];
buildInputs = [ buildInputs = [
@ -49,7 +48,7 @@ let
libGL libGL
libGLU libGLU
libX11 libX11
]; ] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
propagatedBuildInputs = [ propagatedBuildInputs = [
six six

View File

@ -1041,7 +1041,9 @@ in {
cachy = callPackage ../development/python-modules/cachy { }; cachy = callPackage ../development/python-modules/cachy { };
cadquery = callPackage ../development/python-modules/cadquery { }; cadquery = callPackage ../development/python-modules/cadquery {
inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
};
caffe = toPythonModule (pkgs.caffe.override { caffe = toPythonModule (pkgs.caffe.override {
pythonSupport = true; pythonSupport = true;