3
0
Fork 0
forked from mirrors/nixpkgs

Adding liquidwar6

svn path=/nixpkgs/trunk/; revision=18996
This commit is contained in:
Michael Raskin 2009-12-16 16:06:30 +00:00
parent 67ed6bf75b
commit 6a513f169d
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,36 @@
a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
xproto libX11 gmp guile
mesa libjpeg libpng
expat gettext perl
SDL SDL_image SDL_mixer SDL_ttf
curl sqlite
libogg libvorbis
libXrender
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["setVars" "doConfigure" "doMakeInstall"];
setVars = a.noDepEntry (''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.SDL}/include/SDL"
'');
meta = {
description = "Quick tactics game";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
};
}

View file

@ -0,0 +1,9 @@
rec {
version="0.0.7beta";
name="liquidwar-0.0.7beta";
hash="0wl54nfrcfkyacg14y0653xyy2wrlmfwlmfiqrrifv08kzgw6pgb";
url="http://download.savannah.gnu.org/releases/liquidwar6/${version}/liquidwar6-${version}.tar.gz";
advertisedUrl="http://download.savannah.gnu.org/releases/liquidwar6/0.0.7beta/liquidwar6-0.0.7beta.tar.gz";
}

View file

@ -0,0 +1,8 @@
{
downloadPage = "http://download.savannah.gnu.org/releases/liquidwar6/";
choiceCommand = '' tail -1 | sed -r -e 's@(.*)/@http://download.savannah.gnu.org/releases/liquidwar6/\1/liquidwar6-\1.tar.gz@' '';
sourceRegexp = ".*";
baseName = "liquidwar";
versionExtractorSedScript = ''s/.*-([-0-9a-z.]+)[.]tar[.]gz/\1/'';
versionReferenceCreator = "$(replaceAllVersionOccurences)";
}

View file

@ -4133,6 +4133,16 @@ let
inherit fetchurl stdenv;
};
liquidwar = builderDefsPackage ../games/liquidwar {
inherit (xlibs) xproto libX11 libXrender;
inherit gmp guile mesa libjpeg libpng
expat gettext perl
SDL SDL_image SDL_mixer SDL_ttf
curl sqlite
libogg libvorbis
;
};
log4cxx = import ../development/libraries/log4cxx {
inherit fetchurl stdenv automake autoconf libtool cppunit libxml2 boost;
inherit apr aprutil db45 expat;