2018-12-30 19:40:47 -08:00
|
|
|
{ stdenv, fetchurl, texinfo, 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
|
|
|
|
, libXxf86vm, openal, libGLU_combined }:
|
2010-11-27 10:31:05 -08:00
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "allegro-${version}";
|
|
|
|
version="4.4.2";
|
2010-11-27 10:31:05 -08:00
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
src = fetchurl {
|
2018-10-12 13:33:43 -07:00
|
|
|
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${name}.tar.gz";
|
2015-12-29 14:33:13 -08:00
|
|
|
sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
|
|
|
|
};
|
2014-07-01 01:41:07 -07:00
|
|
|
|
2017-09-03 11:12:32 -07:00
|
|
|
patches = [
|
2018-12-27 09:14:33 -08:00
|
|
|
./allegro4-mesa-18.2.5.patch
|
2017-09-03 11:12:32 -07:00
|
|
|
./nix-unstable-sandbox-fix.patch
|
|
|
|
];
|
|
|
|
|
2015-12-29 14:33:13 -08:00
|
|
|
buildInputs = [
|
2018-12-30 19:40:47 -08:00
|
|
|
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
|
2015-12-29 14:33:13 -08:00
|
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
2018-12-30 19:40:47 -08:00
|
|
|
libXxf86vm openal libGLU_combined
|
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";
|
2018-06-23 04:34:55 -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
|
|
|
}
|