2011-02-16 23:19:59 +01:00
|
|
|
x@{builderDefsPackage
|
2012-02-16 18:56:14 +01:00
|
|
|
, zlib
|
2011-02-16 23:19:59 +01:00
|
|
|
, curl, gnutls, fribidi, libpng, SDL, SDL_gfx, SDL_image, SDL_mixer
|
|
|
|
, SDL_net, SDL_ttf, libunwind, libX11, xproto, libxml2, pkgconfig
|
|
|
|
, gettext, intltool, libtool, perl
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="warmux";
|
2012-02-16 18:56:14 +01:00
|
|
|
version="11.04.1";
|
2011-02-16 23:19:59 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://download.gna.org/${baseName}/${name}.tar.bz2";
|
2012-02-16 18:56:14 +01:00
|
|
|
hash="1vp44wdpnb1g6cddmn3nphc543pxsdhjis52mfif0p2c7qslz73q";
|
2011-02-16 23:19:59 +01: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 */
|
2013-12-20 15:57:22 +01:00
|
|
|
phaseNames = ["doPatch" "doConfigure" "doMakeInstall"];
|
2012-02-16 18:56:14 +01:00
|
|
|
|
|
|
|
configureFlags = "CFLAGS=\"-include ${zlib}/include/zlib.h\"";
|
|
|
|
|
2013-12-20 15:57:22 +01:00
|
|
|
patches = [ ./gcc-fix.patch ];
|
|
|
|
|
2011-02-16 23:19:59 +01:00
|
|
|
meta = {
|
|
|
|
description = "Ballistics turn-based battle game between teams";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
license = a.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://download.gna.org/warmux/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|