2020-09-08 01:03:27 -07:00
|
|
|
{ stdenv, fetchurl, texinfo6_5, libXext, xorgproto, libX11
|
2015-12-29 14:33:13 -08:00
|
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
2018-12-30 19:40:47 -08:00
|
|
|
, libXxf86dga, libXxf86misc
|
2019-11-10 08:44:34 -08:00
|
|
|
, libXxf86vm, openal, libGLU, libGL }:
|
2010-11-27 10:31:05 -08:00
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "allegro";
|
2020-04-22 02:40:36 -07:00
|
|
|
version="4.4.3.1";
|
2010-11-27 10:31:05 -08:00
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${pname}-${version}.tar.gz";
|
2020-04-22 02:40:36 -07:00
|
|
|
sha256 = "1m6lz35nk07dli26kkwz3wa50jsrxs1kb6w1nj14a911l34xn6gc";
|
2015-12-29 14:33:13 -08:00
|
|
|
};
|
2014-07-01 01:41:07 -07:00
|
|
|
|
2017-09-03 11:12:32 -07:00
|
|
|
patches = [
|
|
|
|
./nix-unstable-sandbox-fix.patch
|
2020-09-10 12:20:44 -07:00
|
|
|
./encoding.patch
|
2017-09-03 11:12:32 -07:00
|
|
|
];
|
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
buildInputs = [
|
2020-09-08 01:03:27 -07:00
|
|
|
texinfo6_5 libXext xorgproto libX11 libXpm libXt libXcursor
|
2015-12-29 14:33:13 -08:00
|
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
2019-11-10 08:44:34 -08:00
|
|
|
libXxf86vm openal libGLU libGL
|
2010-11-27 10:31:05 -08:00
|
|
|
];
|
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-08 01:52:09 -08:00
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-11-27 10:31:05 -08:00
|
|
|
description = "A game programming library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://liballeg.org/";
|
2015-12-29 14:33:13 -08:00
|
|
|
license = licenses.free; # giftware
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2010-11-27 10:31:05 -08:00
|
|
|
};
|
2015-12-29 14:33:13 -08:00
|
|
|
}
|