From 18ddc5f25ced4b20b7668964a072e0f0f4d37fb1 Mon Sep 17 00:00:00 2001 From: LluĂ­s Batlle i Rossell Date: Wed, 7 Mar 2012 22:04:53 +0000 Subject: A little patch to gav, and it does not require gcc 4.1 anymore. svn path=/nixpkgs/trunk/; revision=32863 --- pkgs/games/gav/default.nix | 4 +++- pkgs/games/gav/gcc.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkgs/games/gav/gcc.patch (limited to 'pkgs/games') diff --git a/pkgs/games/gav/default.nix b/pkgs/games/gav/default.nix index d525e0a372f96..d83358cd69d7c 100644 --- a/pkgs/games/gav/default.nix +++ b/pkgs/games/gav/default.nix @@ -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 = { diff --git a/pkgs/games/gav/gcc.patch b/pkgs/games/gav/gcc.patch new file mode 100644 index 0000000000000..eb4c64727bce0 --- /dev/null +++ b/pkgs/games/gav/gcc.patch @@ -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 + #include + #include ++#include + #include + #include + #include -- cgit 1.4.1