8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
36 lines
1,023 B
Nix
36 lines
1,023 B
Nix
{ stdenv, fetchurl, texinfo, libXext, xorgproto, libX11
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
, 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
|
|
];
|
|
|
|
buildInputs = [
|
|
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
|
libXxf86vm openal libGLU libGL
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|