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

45 lines
1.3 KiB
Nix
Raw Normal View History

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