2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
|
2021-06-28 23:13:55 +00:00
|
|
|
, libXpm, libXt, libXcursor, alsa-lib, cmake, zlib, libpng, libvorbis
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXxf86dga, libXxf86misc
|
|
|
|
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
|
|
|
|
, libXi, libXfixes, freetype, libopus, libtheora
|
2021-08-18 13:19:15 +00:00
|
|
|
, physfs, enet, pkg-config, gtk3, pcre, libpulseaudio, libpthreadstubs
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXdmcp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "allegro";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "5.2.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "liballeg";
|
|
|
|
repo = "allegro5";
|
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-uNcaeTelFNfg+YjPYc7nK4TrFDxJsEuPhsF8x1cvIYQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
|
2022-04-03 18:54:34 +00:00
|
|
|
alsa-lib zlib libpng libvorbis libXxf86dga libXxf86misc
|
2020-04-24 23:36:52 +00:00
|
|
|
libXxf86vm openal libGLU libGL
|
|
|
|
libjpeg flac
|
|
|
|
libXi libXfixes
|
2021-08-18 13:19:15 +00:00
|
|
|
enet libtheora freetype physfs libopus pkg-config gtk3 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;
|
|
|
|
};
|
|
|
|
}
|