2015-12-30 01:33:13 +03:00
|
|
|
{ stdenv, fetchurl, texinfo, libXext, xextproto, libX11, xproto
|
|
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
|
|
, libXxf86dga, libXxf86misc, xf86dgaproto, xf86miscproto
|
2018-02-24 16:12:44 +03:00
|
|
|
, xf86vidmodeproto, libXxf86vm, openal, libGLU_combined }:
|
2010-11-27 21:31:05 +03:00
|
|
|
|
2015-12-30 01:33:13 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "allegro-${version}";
|
|
|
|
version="4.4.2";
|
2010-11-27 21:31:05 +03:00
|
|
|
|
2015-12-30 01:33:13 +03:00
|
|
|
src = fetchurl {
|
2018-10-12 23:33:43 +03:00
|
|
|
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${name}.tar.gz";
|
2015-12-30 01:33:13 +03:00
|
|
|
sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
|
|
|
|
};
|
2014-07-01 12:41:07 +04:00
|
|
|
|
2017-09-03 21:12:32 +03:00
|
|
|
patches = [
|
|
|
|
./nix-unstable-sandbox-fix.patch
|
|
|
|
];
|
|
|
|
|
2015-12-30 01:33:13 +03:00
|
|
|
buildInputs = [
|
|
|
|
texinfo libXext xextproto libX11 xproto libXpm libXt libXcursor
|
|
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
2018-02-24 16:12:44 +03:00
|
|
|
xf86dgaproto xf86miscproto xf86vidmodeproto libXxf86vm openal libGLU_combined
|
2010-11-27 21:31:05 +03:00
|
|
|
];
|
|
|
|
|
2016-02-26 20:38:15 +03:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-08 12:52:09 +03:00
|
|
|
|
2015-12-30 01:33:13 +03:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-11-27 21:31:05 +03:00
|
|
|
description = "A game programming library";
|
2018-06-23 14:34:55 +03:00
|
|
|
homepage = https://liballeg.org/;
|
2015-12-30 01:33:13 +03:00
|
|
|
license = licenses.free; # giftware
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2010-11-27 21:31:05 +03:00
|
|
|
};
|
2015-12-30 01:33:13 +03:00
|
|
|
}
|