1 { lib, stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
2 , libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
3 , libXxf86dga, libXxf86misc
4 , libXxf86vm, openal, libGLU, libGL, libjpeg, flac
5 , libXi, libXfixes, freetype, libopus, libtheora
6 , physfs, enet, pkg-config, gtk2, pcre, libpulseaudio, libpthreadstubs
10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-JdnzEW+qAhAljR+WfmgE3P9xeR2HvjS64tFgCC0tNA0=";
22 texinfo libXext xorgproto libX11 libXpm libXt libXcursor
23 alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
24 libXxf86vm openal libGLU libGL
27 enet libtheora freetype physfs libopus pkg-config gtk2 pcre libXdmcp
28 libpulseaudio libpthreadstubs
32 sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
35 cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
38 description = "A game programming library";
39 homepage = "https://liballeg.org/";
40 license = licenses.zlib;
41 maintainers = [ maintainers.raskin ];
42 platforms = platforms.linux;