3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/allegro/5.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

x@{builderDefsPackage
, texinfo, libXext, xextproto, libX11, xproto, libXpm, libXt, libXcursor
, alsaLib, cmake, zlib, libpng, libvorbis, libXxf86dga, libXxf86misc
, xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal, mesa
2013-12-18 11:46:33 +00:00
, kbproto, libjpeg, flac
, ...}:
builderDefsPackage
2014-07-01 09:41:07 +01:00
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
baseName="allegro";
2015-01-18 15:17:39 +00:00
version = "5.0.11";
name="${baseName}-${version}";
project="alleg";
url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.tar.gz";
2013-12-18 11:44:09 +00:00
hash="18fdppaqaf3g3rcqwhyvsmkzk3y14clz4l8cvmg4hvjgyf011f3i";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
2015-01-18 15:17:39 +00:00
sha256 = "0cd51qrh97jrr0xdmnivqgwljpmizg8pixsgvc4blqqlaz4i9zj9";
};
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doCmake" "doMakeInstall"];
doCmake = a.fullDepEntry (''
export NIX_LDFLAGS="$NIX_LDFLAGS -lXext -lX11 -lXpm -lXcursor -lXxf86vm"
cmake -D CMAKE_INSTALL_PREFIX=$out -D CMAKE_SKIP_RPATH=ON .
'') ["minInit" "doUnpack" "addInputs"];
2014-07-01 09:41:07 +01:00
makeFlags = [
];
meta = {
description = "A game programming library";
license = a.lib.licenses.free; # giftware
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
2014-07-01 09:41:07 +01:00
inherit version;
};
}) x