forked from mirrors/nixpkgs
Adding liquidwar6
svn path=/nixpkgs/trunk/; revision=18996
This commit is contained in:
parent
67ed6bf75b
commit
6a513f169d
36
pkgs/games/liquidwar/default.nix
Normal file
36
pkgs/games/liquidwar/default.nix
Normal 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;
|
||||
};
|
||||
}
|
9
pkgs/games/liquidwar/src-for-default.nix
Normal file
9
pkgs/games/liquidwar/src-for-default.nix
Normal 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";
|
||||
|
||||
|
||||
}
|
8
pkgs/games/liquidwar/src-info-for-default.nix
Normal file
8
pkgs/games/liquidwar/src-info-for-default.nix
Normal 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)";
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue