From 8618fe6f96b9daecc98e7d7978bda6feac067191 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Sun, 10 Nov 2024 19:19:50 +0800 Subject: [PATCH] python312Packages.pyftgl: fix build on darwin --- pkgs/development/python-modules/pyftgl/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyftgl/default.nix b/pkgs/development/python-modules/pyftgl/default.nix index 4dd6aa9b6dd6..0bd0cf6a88db 100644 --- a/pkgs/development/python-modules/pyftgl/default.nix +++ b/pkgs/development/python-modules/pyftgl/default.nix @@ -28,13 +28,13 @@ buildPythonPackage rec { sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r"; }; - postPatch = '' - sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py - ''; - - env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { - NIX_CFLAGS_COMPILE = "-L${libGL}/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries"; - }; + postPatch = + '' + sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py + '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' + export NIX_CFLAGS_COMPILE+=" -L$SDKROOT/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries" + ''; buildInputs = [ boost