nixpkgs-suyu/pkgs/development/libraries/allegro/5.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
, libXxf86dga, libXxf86misc
2019-11-10 17:44:34 +01:00
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
, libXi, libXfixes, freetype, libopus, libtheora
2016-11-26 20:18:35 +01:00
, physfs, enet, pkgconfig, gtk2, pcre, libpulseaudio, libpthreadstubs
, libXdmcp
}:
stdenv.mkDerivation rec {
2019-08-26 09:53:26 +02:00
pname = "allegro";
version = "5.2.5.0";
2017-08-01 11:25:37 +02:00
src = fetchFromGitHub {
owner = "liballeg";
repo = "allegro5";
rev = version;
2019-08-26 09:53:26 +02:00
sha256 = "1jrnizpwznyxz2c7zb75lfy7l51ww5jlqfaahcrycfj1xay9mpqp";
};
buildInputs = [
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
2019-11-10 17:44:34 +01:00
libXxf86vm openal libGLU libGL
libjpeg flac
libXi libXfixes
2016-11-26 20:18:35 +01:00
enet libtheora freetype physfs libopus pkgconfig gtk2 pcre libXdmcp
libpulseaudio libpthreadstubs
];
postPatch = ''
2016-11-26 20:18:35 +01:00
sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
'';
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
meta = with stdenv.lib; {
description = "A game programming library";
2018-06-23 13:34:55 +02:00
homepage = https://liballeg.org/;
license = licenses.zlib;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
};
}