aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/opencollada
diff options
context:
space:
mode:
authorEdmund Wu <fangkazuto@gmail.com>2018-07-26 10:07:27 -0400
committerEdmund Wu <fangkazuto@gmail.com>2018-08-01 22:02:41 -0400
commit6f62bf31c197e1c736d31cd4b23f94c2caf7affb (patch)
treeef246721e16295379895e22c02f1f06a4022ae44 /pkgs/development/libraries/opencollada
parent4758fe7c564bd5cb55c351930201fcafcca1bd4a (diff)
opencollada: include pcre.h (KhronosGroup/OpenCOLLADA#570)
Diffstat (limited to 'pkgs/development/libraries/opencollada')
-rw-r--r--pkgs/development/libraries/opencollada/default.nix4
-rw-r--r--pkgs/development/libraries/opencollada/pcre.patch14
2 files changed, 17 insertions, 1 deletions
diff --git a/pkgs/development/libraries/opencollada/default.nix b/pkgs/development/libraries/opencollada/default.nix
index a0a39980d45d..0c852a09a05d 100644
--- a/pkgs/development/libraries/opencollada/default.nix
+++ b/pkgs/development/libraries/opencollada/default.nix
@@ -21,7 +21,9 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
- patchPhase = lib.optionalString stdenv.isDarwin ''
+ patchPhase = ''
+ patch -p1 < ${./pcre.patch}
+ '' + lib.optionalString stdenv.isDarwin ''
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
--replace math.h cmath
'';
diff --git a/pkgs/development/libraries/opencollada/pcre.patch b/pkgs/development/libraries/opencollada/pcre.patch
new file mode 100644
index 000000000000..39408f5a61e3
--- /dev/null
+++ b/pkgs/development/libraries/opencollada/pcre.patch
@@ -0,0 +1,14 @@
+diff --git a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
+index 22f2598b..269c50ca 100644
+--- a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
++++ b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
+@@ -13,8 +13,7 @@
+
+ #include "COLLADABUPrerequisites.h"
+
+-struct real_pcre;
+-typedef struct real_pcre pcre;
++#include "pcre.h"
+
+
+ namespace COLLADABU