tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ogre1_9: fix for aarch64
Robert Scott
4 years ago
7a1b0adc
aa0e8072
+8
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
ogre
1.9.x.nix
+8
pkgs/development/libraries/ogre/1.9.x.nix
···
19
19
sha256 = "11lfgzqaps3728dswrq3cbwk7aicigyz08q4hfyy6ikc6m35r4wg";
20
20
};
21
21
22
22
+
# fix for ARM. sys/sysctl.h has moved in later glibcs, and
23
23
+
# https://github.com/OGRECave/ogre-next/issues/132 suggests it isn't
24
24
+
# needed anyway.
25
25
+
postPatch = ''
26
26
+
substituteInPlace OgreMain/src/OgrePlatformInformation.cpp \
27
27
+
--replace '#include <sys/sysctl.h>' ""
28
28
+
'';
29
29
+
22
30
cmakeFlags = [ "-DOGRE_BUILD_SAMPLES=${toString withSamples}" ]
23
31
++ map (x: "-DOGRE_BUILD_PLUGIN_${x}=on")
24
32
([ "BSP" "OCTREE" "PCZ" "PFX" ] ++ lib.optional withNvidiaCg "CG")