From de036bc10c03a20471d406d3f79c737b0ab25d0f Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 29 Jan 2014 09:27:21 +0400 Subject: [PATCH] Fix Xmoto build (missing include) --- pkgs/games/xmoto/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/games/xmoto/default.nix b/pkgs/games/xmoto/default.nix index ed37227bb039..5695bb5b4294 100644 --- a/pkgs/games/xmoto/default.nix +++ b/pkgs/games/xmoto/default.nix @@ -15,7 +15,11 @@ rec { configureFlags = []; /* doConfigure should be removed if not needed */ - phaseNames = [ "doConfigure" "doMakeInstall"]; + phaseNames = [ "patchIncludes" "doConfigure" "doMakeInstall"]; + patchIncludes = a.fullDepEntry '' + sed -e '1i#include ' -i src/helpers//System.cpp + sed -e '1i#include ' -i src/helpers//System.cpp + '' ["doUnpack" "minInit"]; meta = { description = "X-Moto - obstacled race game";