diff --git a/pkgs/development/libraries/pinocchio/default.nix b/pkgs/development/libraries/pinocchio/default.nix index 030ec85496db..8b48e74476a6 100644 --- a/pkgs/development/libraries/pinocchio/default.nix +++ b/pkgs/development/libraries/pinocchio/default.nix @@ -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 = [