diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-09-13 18:31:33 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-09-13 18:31:33 +0000 |
commit | 125600079dbff3a40bf66b536d2bf7c9aa40d28f (patch) | |
tree | 08128d9dc9daac7b666618c1577799cba7e888b5 /pkgs/games/xmoto | |
parent | 00343dac28e1c032c874a568b4026639c1e1b5c7 (diff) |
Updating XMoto (and adding some functionality to upstream tracking system)
svn path=/nixpkgs/trunk/; revision=17100
Diffstat (limited to 'pkgs/games/xmoto')
-rw-r--r-- | pkgs/games/xmoto/default.nix | 23 | ||||
-rw-r--r-- | pkgs/games/xmoto/src-for-default.nix | 9 | ||||
-rw-r--r-- | pkgs/games/xmoto/src-info-for-default.nix | 7 |
3 files changed, 27 insertions, 12 deletions
diff --git a/pkgs/games/xmoto/default.nix b/pkgs/games/xmoto/default.nix index b6222c097d029..5fa44eacfba24 100644 --- a/pkgs/games/xmoto/default.nix +++ b/pkgs/games/xmoto/default.nix @@ -1,29 +1,28 @@ -args : +a : let - lib = args.lib; - fetchurl = args.fetchurl; - - version = lib.attrByPath ["version"] "0.5.1" args; - buildInputs = with args; [ + s = import ./src-for-default.nix; + buildInputs = with a; [ chipmunk sqlite curl zlib bzip2 libjpeg libpng freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf lua5 ode ]; in rec { - src = fetchurl { - url = "http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz"; - sha256 = "1clfw4kr34gda9ml427n8mdkhj0hhlldibiq1ay88glqqwvgj2j2"; - }; + src = a.fetchUrlFromSrcInfo s; + inherit (s) name; inherit buildInputs; configureFlags = []; - /* doConfigure should be specified separately */ + /* doConfigure should be removed if not needed */ phaseNames = ["doConfigure" "doMakeInstall"]; - name = "xmoto-" + version; meta = { description = "X-Moto - obstacled race game"; + maintainers = [ + a.lib.maintainers.raskin + ]; + platforms = with a.lib.platforms; + linux ++ freebsd; }; } diff --git a/pkgs/games/xmoto/src-for-default.nix b/pkgs/games/xmoto/src-for-default.nix new file mode 100644 index 0000000000000..bc024263c226e --- /dev/null +++ b/pkgs/games/xmoto/src-for-default.nix @@ -0,0 +1,9 @@ +rec { + version="0.5.2"; + name="xmoto-0.5.2"; + hash="13q5b0a1ha5am3p2b7a399ca7vnw4fs82y96aw0n96s3xmw17jd8"; + url="http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz"; + advertisedUrl="http://download.tuxfamily.org/xmoto/xmoto/0.5.2/xmoto-0.5.2-src.tar.gz"; + + +} diff --git a/pkgs/games/xmoto/src-info-for-default.nix b/pkgs/games/xmoto/src-info-for-default.nix new file mode 100644 index 0000000000000..8d5d3f49822c6 --- /dev/null +++ b/pkgs/games/xmoto/src-info-for-default.nix @@ -0,0 +1,7 @@ +{ + downloadPage = "http://xmoto.tuxfamily.org/"; + baseName = "xmoto"; + sourceRegexp = "xmoto-.*-src[.]tar[.].*"; + versionExtractorSedScript = ''$dashDelimitedVersion''; + versionReferenceCreator=''$(replaceAllVersionOccurences)''; +} |