@ -1,7 +1,7 @@
{ lib , stdenv , cmake , pkg-config , git , curl , SDL2 , xercesc , openal , lua , libvlc
, libjpeg , wxGTK , cppunit , ftgl , glew , libogg , libvorbis , buildEnv , libpng
, fontconfig , freetype , xorg , makeWrapper , bash , which , gnome , libGLU , glib
, fetchFromGitHub
, fetchFromGitHub , fetchpatch
} :
let
version = " 3 . 1 3 . 0 " ;
@ -28,6 +28,15 @@ stdenv.mkDerivation {
sha256 = " 0 f b 5 8 a 7 0 6 n i c 1 4 s s 8 9 z r i g p h v d i w y 5 s 9 d w v h s c v v g r f v j p a h p c w s " ;
} ;
patches = [
# Pull upstream fix for -fno-common toolchains
( fetchpatch {
name = " f n o - c o m m o n . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / M e g a G l e s t / m e g a g l e s t - s o u r c e / c o m m i t / 5 a 3 5 2 0 5 4 0 2 7 6 a 6 f d 0 6 f 7 c 8 8 e 5 7 1 b 6 4 6 2 9 7 8 e 3 e a b . p a t c h " ;
sha256 = " 0 y 5 5 4 k j w 5 6 d i k q 8 7 v s 7 0 9 p m q 9 7 h d x 9 h v q s k 2 7 f 8 1 v 4 g 9 0 m 3 b 3 q h i " ;
} )
] ;
nativeBuildInputs = [ cmake pkg-config ] ;
buildInputs = [ git curl SDL2 xercesc openal lua libpng libjpeg libvlc wxGTK
glib cppunit fontconfig freetype ftgl glew libogg libvorbis makeWrapper libGLU ] ;