6d315ab1fa
GL/glxext.h include guard was changed in https://cgit.freedesktop.org/mesa/mesa/commit/include/GL/glxext.h?h=mesa-18.2.5&id=06eb33960e85994bd4ee952395dde6d1762c93b5
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, texinfo, libXext, xextproto, libX11, xproto
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
, libXxf86dga, libXxf86misc, xf86dgaproto, xf86miscproto
|
|
, xf86vidmodeproto, libXxf86vm, openal, libGLU_combined }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "allegro-${version}";
|
|
version="4.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${name}.tar.gz";
|
|
sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
|
|
};
|
|
|
|
patches = [
|
|
./allegro4-mesa-18.2.5.patch
|
|
./nix-unstable-sandbox-fix.patch
|
|
];
|
|
|
|
buildInputs = [
|
|
texinfo libXext xextproto libX11 xproto libXpm libXt libXcursor
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
|
xf86dgaproto xf86miscproto xf86vidmodeproto libXxf86vm openal libGLU_combined
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A game programming library";
|
|
homepage = https://liballeg.org/;
|
|
license = licenses.free; # giftware
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|