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