tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
opencollada: homogenize and patch for cmake4
etwas
4 months ago
8a6e2716
d8b10a34
+22
-19
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
op
opencollada
package.nix
pcre.patch
+22
-5
pkgs/by-name/op/opencollada/package.nix
···
1
1
{
2
2
cmake,
3
3
+
dos2unix,
3
4
fetchFromGitHub,
4
4
-
fetchurl,
5
5
+
fetchpatch,
5
6
lib,
6
7
libxml2,
7
8
pcre,
···
20
21
sha256 = "1ym16fxx9qhf952vva71sdzgbm7ifis0h1n5fj1bfdj8zvvkbw5w";
21
22
};
22
23
24
24
+
# Fix freaky dos-style CLRF things
25
25
+
prePatch = ''
26
26
+
dos2unix CMakeLists.txt
27
27
+
'';
28
28
+
23
29
patches = [
24
24
-
./pcre.patch
25
25
-
26
30
# fix build with gcc 13
27
27
-
(fetchurl {
31
31
+
(fetchpatch {
28
32
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.68-gcc13.patch?id=b76590f9fb8615da3da9d783ad841c0e3881a27b";
29
29
-
hash = "sha256-uimeLGHgXaFi61mmoaloJ5vo83c8EIQmtHEMngC2Nq4=";
33
33
+
hash = "sha256-oi/QhNPRnuSHfJJ071/3wnjLeg4zZUL6NwSGYvgkb/k=";
34
34
+
})
35
35
+
36
36
+
# fix pcre
37
37
+
(fetchpatch {
38
38
+
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.63-pcre-fix.patch";
39
39
+
hash = "sha256-igrwgmNwDKYwj6xWvWrryT5ARWJpztVmlQ0HCLQn5+Q=";
40
40
+
})
41
41
+
42
42
+
# fix build with cmake 4
43
43
+
(fetchpatch {
44
44
+
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.68-cmake4.patch?id=42f1e0614c4d056841fdc162c29a04ff0e910139";
45
45
+
hash = "sha256-gbF6PPalJGgXGu4W7EptYeDq8418JdGH50LIqKqGKX0=";
30
46
})
31
47
];
32
48
···
43
59
nativeBuildInputs = [
44
60
cmake
45
61
pkg-config
62
62
+
dos2unix
46
63
];
47
64
48
65
propagatedBuildInputs = [
-14
pkgs/by-name/op/opencollada/pcre.patch
···
1
1
-
diff --git a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
2
2
-
index 22f2598b..269c50ca 100644
3
3
-
--- a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
4
4
-
+++ b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
5
5
-
@@ -13,8 +13,7 @@
6
6
-
7
7
-
#include "COLLADABUPrerequisites.h"
8
8
-
9
9
-
-struct real_pcre;
10
10
-
-typedef struct real_pcre pcre;
11
11
-
+#include "pcre.h"
12
12
-
13
13
-
14
14
-
namespace COLLADABU