neko: Add patch fixing arg handling on 32bit.

The error was reported at HaxeFoundation/haxelib#152 and was fixed by
HaxeFoundation/neko#41 in HaxeFoundation/neko@ccc78c2, the latter being
fetchpatch'ed by us now.

This has caused the hxcpp build to fail on i686-linux with an "Invalid
array access" error.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-09-10 18:30:33 +02:00
parent 617b371ba4
commit 2cc8680b88
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boehmgc, zlib, sqlite, pcre }: { stdenv, fetchurl, fetchpatch, boehmgc, zlib, sqlite, pcre }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "neko-${version}"; name = "neko-${version}";
@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "1lcm1ahbklfpd5lnqjwmvyj2vr85jbq57hszk5jgq0x6yx6p3927"; sha256 = "1lcm1ahbklfpd5lnqjwmvyj2vr85jbq57hszk5jgq0x6yx6p3927";
}; };
patches = stdenv.lib.singleton (fetchpatch {
url = "https://github.com/HaxeFoundation/neko/commit/"
+ "ccc78c29deab7971e1369f4fe3dedd14cf9f3128.patch";
sha256 = "1nya50rzai15hmpq2azganjxzgrfydf30glfwirgw6q8z7z3wpkq";
});
prePatch = with stdenv.lib; let prePatch = with stdenv.lib; let
libs = concatStringsSep "," (map (lib: "\"${lib}/include\"") buildInputs); libs = concatStringsSep "," (map (lib: "\"${lib}/include\"") buildInputs);
in '' in ''