From 660203213fef01b61dffab7571732021e6e8679b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 23 Dec 2009 18:34:46 +0000 Subject: [PATCH] Fixing xmoto for x86_64-linux, taking a patch from Debian svn path=/nixpkgs/trunk/; revision=19081 --- pkgs/games/xmoto/64bit-ftbs.patch | 12 ++++++++++++ pkgs/games/xmoto/default.nix | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkgs/games/xmoto/64bit-ftbs.patch diff --git a/pkgs/games/xmoto/64bit-ftbs.patch b/pkgs/games/xmoto/64bit-ftbs.patch new file mode 100644 index 000000000000..037c026e4e6c --- /dev/null +++ b/pkgs/games/xmoto/64bit-ftbs.patch @@ -0,0 +1,12 @@ +From debian: https://launchpad.net/ubuntu/karmic/+source/xmoto/0.5.2-2 +--- a/src/Replay.cpp ++++ b/src/Replay.cpp +@@ -156,7 +156,7 @@ + v_replay.writeBuf(pcData, nDataSize); + + /* Chunks */ +- v_replay << m_Chunks.size(); ++ v_replay << (unsigned int)m_Chunks.size(); + for(unsigned int i=0;inNumStates; + v_replay.writeBuf(m_Chunks[i]->pcChunkData, m_nStateSize * m_Chunks[i]->nNumStates); diff --git a/pkgs/games/xmoto/default.nix b/pkgs/games/xmoto/default.nix index 5fa44eacfba2..36f840df2d95 100644 --- a/pkgs/games/xmoto/default.nix +++ b/pkgs/games/xmoto/default.nix @@ -15,7 +15,9 @@ rec { configureFlags = []; /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; + phaseNames = [ "doPatch" "doConfigure" "doMakeInstall"]; + + patches = [ ./64bit-ftbs.patch ]; meta = { description = "X-Moto - obstacled race game";