pinocchio: fix build on x86_64-darwin
This commit is contained in:
parent
561083d21b
commit
fedd4d02f5
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user