2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
|
|
, libXxf86dga, libXxf86misc
|
|
|
|
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
|
|
|
|
, libXi, libXfixes, freetype, libopus, libtheora
|
2021-02-05 17:12:51 +00:00
|
|
|
, physfs, enet, pkg-config, gtk2, pcre, libpulseaudio, libpthreadstubs
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXdmcp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "allegro";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "5.2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "liballeg";
|
|
|
|
repo = "allegro5";
|
|
|
|
rev = version;
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "sha256-JdnzEW+qAhAljR+WfmgE3P9xeR2HvjS64tFgCC0tNA0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
|
|
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
|
|
|
libXxf86vm openal libGLU libGL
|
|
|
|
libjpeg flac
|
|
|
|
libXi libXfixes
|
2021-02-05 17:12:51 +00:00
|
|
|
enet libtheora freetype physfs libopus pkg-config gtk2 pcre libXdmcp
|
2020-04-24 23:36:52 +00:00
|
|
|
libpulseaudio libpthreadstubs
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A game programming library";
|
|
|
|
homepage = "https://liballeg.org/";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|