From c585be861961563db74f035a981d32330eb001bf Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 7 Oct 2012 23:10:42 +0200 Subject: [PATCH] neko: Correctly set 64bit mode in build. Neko seems to think it is running in 32bit, even though it is compiled for 64bit. The fix is included in 1.8.3, which is not yet released as of now, so we add a temporary fix until the release. Signed-off-by: aszlig --- pkgs/development/compilers/neko/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/neko/default.nix b/pkgs/development/compilers/neko/default.nix index 64e1741ae5c3..ddeeb51c25e4 100644 --- a/pkgs/development/compilers/neko/default.nix +++ b/pkgs/development/compilers/neko/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { ' src/tools/install.neko sed -i -e '/allocated = strdup/s|"[^"]*"|"'"$out/lib/neko:$out/bin"'"|' \ vm/load.c + # temporarily, fixed in 1.8.3 + sed -i -e 's/^#if defined(_64BITS)/& || defined(__x86_64__)/' vm/neko.h for disabled_mod in mod_neko{,2} mod_tora{,2} mysql ui; do sed -i -e '/^libs/,/^}/{/^\s*'"$disabled_mod"'\s*=>/,/^\s*}/d}' \