2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
|
2015-12-29 22:34:19 +00:00
|
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXxf86dga, libXxf86misc
|
2019-11-10 16:44:34 +00:00
|
|
|
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXi, libXfixes, freetype, libopus, libtheora
|
2021-01-19 06:50:56 +00:00
|
|
|
, physfs, enet, pkg-config, gtk2, pcre, libpulseaudio, libpthreadstubs
|
2016-11-26 19:18:35 +00:00
|
|
|
, libXdmcp
|
|
|
|
}:
|
2011-09-25 22:07:48 +01:00
|
|
|
|
2015-12-29 22:34:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-26 08:53:26 +01:00
|
|
|
pname = "allegro";
|
2020-02-12 00:39:35 +00:00
|
|
|
version = "5.2.6.0";
|
2011-09-25 22:07:48 +01:00
|
|
|
|
2017-08-01 10:25:37 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "liballeg";
|
|
|
|
repo = "allegro5";
|
|
|
|
rev = version;
|
2020-02-12 00:39:35 +00:00
|
|
|
sha256 = "1xbhvriyh10ka2j7jgjkpa6mlzp6av909hhr9sk317vjvf0z0mqz";
|
2011-09-25 22:07:48 +01:00
|
|
|
};
|
|
|
|
|
2015-12-29 22:34:19 +00:00
|
|
|
buildInputs = [
|
2018-12-31 03:40:47 +00:00
|
|
|
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
|
2015-12-29 22:34:19 +00:00
|
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
2019-11-10 16:44:34 +00:00
|
|
|
libXxf86vm openal libGLU libGL
|
2018-12-31 03:40:47 +00:00
|
|
|
libjpeg flac
|
|
|
|
libXi libXfixes
|
2021-01-19 06:50:56 +00:00
|
|
|
enet libtheora freetype physfs libopus pkg-config gtk2 pcre libXdmcp
|
2016-11-26 19:18:35 +00:00
|
|
|
libpulseaudio libpthreadstubs
|
2011-09-25 22:07:48 +01:00
|
|
|
];
|
|
|
|
|
2018-12-20 19:03:26 +00:00
|
|
|
postPatch = ''
|
2016-11-26 19:18:35 +00:00
|
|
|
sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
|
|
|
|
'';
|
|
|
|
|
2015-12-29 22:34:19 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2011-09-25 22:07:48 +01:00
|
|
|
description = "A game programming library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://liballeg.org/";
|
2015-12-29 22:34:19 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2011-09-25 22:07:48 +01:00
|
|
|
};
|
2015-12-29 22:34:19 +00:00
|
|
|
}
|