warmux: reimplement using mkDerivation
This commit is contained in:
parent
a228252b69
commit
3e21aaeb8e
@ -1,55 +1,36 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl
|
||||||
, zlib
|
, zlib, curl, gnutls, fribidi, libpng, SDL, SDL_gfx, SDL_image, SDL_mixer
|
||||||
, curl, gnutls, fribidi, libpng, SDL, SDL_gfx, SDL_image, SDL_mixer
|
, SDL_net, SDL_ttf, libunwind, libX11, xproto, libxml2, pkgconfig
|
||||||
, SDL_net, SDL_ttf, libunwind, libX11, xproto, libxml2, pkgconfig
|
, gettext, intltool, libtool, perl
|
||||||
, gettext, intltool, libtool, perl
|
}:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "warmux-${version}";
|
||||||
sourceInfo = rec {
|
version = "11.04.1";
|
||||||
baseName="warmux";
|
|
||||||
version="11.04.1";
|
src = fetchurl {
|
||||||
name="${baseName}-${version}";
|
url = "http://download.gna.org/warmux/${name}.tar.bz2";
|
||||||
url="http://download.gna.org/${baseName}/${name}.tar.bz2";
|
sha256 = "1vp44wdpnb1g6cddmn3nphc543pxsdhjis52mfif0p2c7qslz73q";
|
||||||
hash="1vp44wdpnb1g6cddmn3nphc543pxsdhjis52mfif0p2c7qslz73q";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs =
|
||||||
inherit buildInputs;
|
[ zlib curl gnutls fribidi libpng SDL SDL_gfx SDL_image SDL_mixer
|
||||||
|
SDL_net SDL_ttf libunwind libX11 xproto libxml2 pkgconfig
|
||||||
|
gettext intltool libtool perl
|
||||||
|
];
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
configureFlagsArray = ("CFLAGS=-include ${zlib}/include/zlib.h");
|
||||||
phaseNames = ["doPatch" "doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
configureFlags = "CFLAGS=\"-include ${zlib}/include/zlib.h\"";
|
|
||||||
|
|
||||||
patches = [ ./gcc-fix.patch ];
|
patches = [ ./gcc-fix.patch ];
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Ballistics turn-based battle game between teams";
|
description = "Ballistics turn-based battle game between teams";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers;
|
||||||
[
|
[
|
||||||
raskin
|
raskin
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = platforms.linux;
|
||||||
linux;
|
license = licenses.gpl2;
|
||||||
license = a.lib.licenses.gpl2;
|
|
||||||
};
|
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://download.gna.org/warmux/";
|
downloadPage = "http://download.gna.org/warmux/";
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}) x
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user