mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
bbd253b569
This replaces use of `builderDefsPackage`. Also change to download tarball from GNA as it is the new upstream home. Minor other fixes.
31 lines
997 B
Nix
31 lines
997 B
Nix
{ stdenv, fetchurl, texinfo, libXext, xextproto, libX11, xproto
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
, libXxf86dga, libXxf86misc, xf86dgaproto, xf86miscproto
|
|
, xf86vidmodeproto, libXxf86vm, openal, mesa }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "allegro-${version}";
|
|
version="4.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.gna.org/allegro/allegro/${version}/${name}.tar.gz";
|
|
sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
|
|
};
|
|
|
|
buildInputs = [
|
|
texinfo libXext xextproto libX11 xproto libXpm libXt libXcursor
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
|
xf86dgaproto xf86miscproto xf86vidmodeproto libXxf86vm openal mesa
|
|
];
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A game programming library";
|
|
homepage = http://liballeg.org/;
|
|
license = licenses.free; # giftware
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|