lol

ois: fix build with gcc>=4.7 via a Gentoo patch

+10 -3
+10 -3
pkgs/development/libraries/ois/default.nix
··· 1 - x@{builderDefsPackage 1 + x@{builderDefsPackage, fetchurl 2 2 , autoconf, automake, libtool, m4 3 3 , libX11, xproto, libXi, inputproto 4 4 , libXaw, libXmu, libXt ··· 30 30 inherit (sourceInfo) name version; 31 31 inherit buildInputs; 32 32 33 - phaseNames = ["doConfigure" "doMakeInstall"]; 33 + phaseNames = ["doPatch" "doConfigure" "doMakeInstall"]; 34 + 35 + patches = [(fetchurl { 36 + url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-games/ois/files/ois-1.3-gcc47.patch; 37 + sha256 = "026jw06n42bcrmg0sbdhzc4cqxsnf7fw30a2z9cigd9x282zhii8"; 38 + name = "gcc47.patch"; 39 + })]; 40 + patchFlags = "-p0"; 34 41 35 42 configureCommand = ''sh bootstrap; sh configure''; 36 - 43 + 37 44 meta = { 38 45 description = "Object-oriented C++ input system"; 39 46 maintainers = with a.lib.maintainers;