A little patch to gav, and it does not require gcc 4.1 anymore.

svn path=/nixpkgs/trunk/; revision=32863
This commit is contained in:
Lluís Batlle i Rossell 2012-03-07 22:04:53 +00:00
parent 65f45ef322
commit 18ddc5f25c
3 changed files with 16 additions and 4 deletions

View file

@ -8,11 +8,13 @@ stdenv.mkDerivation {
sha256 = "8f0deb8b2cd775b339229054f4f282583a4cfbcba9d27a6213cf910bab944f3e";
};
patchPhase = ''
prePatch = ''
mkdir -p $out/bin
sed -e "s@/usr@$out@" -i Makefile
sed -e "s@/usr@$out@" -i Theme.h
'';
patches = [ ./gcc.patch ];
buildInputs = [SDL SDL_image SDL_mixer SDL_net];
meta = {

12
pkgs/games/gav/gcc.patch Normal file
View file

@ -0,0 +1,12 @@
diff --git a/aarg.h b/aarg.h
index a212870..907671c 100644
--- a/aarg.h
+++ b/aarg.h
@@ -5,6 +5,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
+#include <string.h>
#include <map>
#include <string>
#include <sstream>

View file

@ -3471,9 +3471,7 @@ let
gamin = callPackage ../development/libraries/gamin { };
gav = callPackage ../games/gav {
stdenv = overrideGCC stdenv gcc41;
};
gav = callPackage ../games/gav { };
gdome2 = callPackage ../development/libraries/gdome2 {
inherit (gnome) gtkdoc;