2010-11-27 18:31:05 +00:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, texinfo, libXext, xextproto, libX11, xproto, libXpm, libXt, libXcursor
|
|
|
|
, alsaLib, cmake, zlib, libpng, libvorbis, libXxf86dga, libXxf86misc
|
2011-03-25 22:15:48 +00:00
|
|
|
, xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal, mesa
|
2010-11-27 18:31:05 +00:00
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-07-01 09:41:07 +01:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2010-11-27 18:31:05 +00:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="allegro";
|
2011-09-25 04:39:23 +01:00
|
|
|
version="4.4.2";
|
2010-11-27 18:31:05 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
project="alleg";
|
2011-09-25 19:12:40 +01:00
|
|
|
url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.tar.gz";
|
2011-09-25 04:39:23 +01:00
|
|
|
hash="1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
|
2010-11-27 18:31:05 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
2010-11-27 18:31:05 +00:00
|
|
|
makeFlags = [
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-07-04 18:33:59 +01:00
|
|
|
branch = "4";
|
2010-11-27 18:31:05 +00:00
|
|
|
description = "A game programming library";
|
|
|
|
license = "free-noncopyleft"; # giftware
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://sourceforge.net/projects/alleg/files/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|