nixpkgs/pkgs/development/libraries/allegro/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, texinfo, libXext, xorgproto, libX11
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
, libXxf86dga, libXxf86misc
2019-11-10 17:44:34 +01:00
, libXxf86vm, openal, libGLU, libGL }:
stdenv.mkDerivation rec {
pname = "allegro";
version="4.4.2";
src = fetchurl {
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
};
2014-07-01 10:41:07 +02:00
patches = [
./allegro4-mesa-18.2.5.patch
./nix-unstable-sandbox-fix.patch
];
buildInputs = [
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
2019-11-10 17:44:34 +01:00
libXxf86vm openal libGLU libGL
];
hardeningDisable = [ "format" ];
2016-02-08 10:52:09 +01:00
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
meta = with stdenv.lib; {
description = "A game programming library";
2018-06-23 13:34:55 +02:00
homepage = https://liballeg.org/;
license = licenses.free; # giftware
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
};
}