2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, texinfo6_5, libXext, xorgproto, libX11
|
2021-06-28 23:13:55 +00:00
|
|
|
, libXpm, libXt, libXcursor, alsa-lib, cmake, zlib, libpng, libvorbis
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXxf86dga, libXxf86misc
|
|
|
|
, libXxf86vm, openal, libGLU, libGL }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "allegro";
|
|
|
|
version="4.4.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1m6lz35nk07dli26kkwz3wa50jsrxs1kb6w1nj14a911l34xn6gc";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./nix-unstable-sandbox-fix.patch
|
2020-09-25 04:45:31 +00:00
|
|
|
./encoding.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
texinfo6_5 libXext xorgproto libX11 libXpm libXt libXcursor
|
2022-04-03 18:54:34 +00:00
|
|
|
alsa-lib zlib libpng libvorbis libXxf86dga libXxf86misc
|
2020-04-24 23:36:52 +00:00
|
|
|
libXxf86vm openal libGLU libGL
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A game programming library";
|
|
|
|
homepage = "https://liballeg.org/";
|
|
|
|
license = licenses.free; # giftware
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|