pinocchio: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang 2022-12-08 02:48:18 +01:00
parent 561083d21b
commit fedd4d02f5

View File

@ -21,6 +21,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-DJX/njNX8l7ngSl3yCeN7ZoQaH65pQTsZrKwmY7EZ+E=";
};
# error: use of undeclared identifier '__sincos'
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
substituteInPlace src/math/sincos.hpp \
--replace "__APPLE__" "0"
'';
strictDeps = true;
nativeBuildInputs = [