mruby: Force 64 bit integers
This might seem weird at first, but is totally needed. We have 48 bit
integers we need to handle, RGBA colours.
AFAICT full-blown Ruby would automatically handle going through another
class for larger integer. But it looks like mruby doesn't
Let's intead use the 64 bit type!
@@ -178,6 +178,11 @@ stdenv.mkDerivation rec {
./bison-36-compat.patch
];
+ postPatch = ''
+ substituteInPlace include/mrbconf.h \
+ --replace '//#define MRB_INT64' '#define MRB_INT64'
+ '';
+
nativeBuildInputs = [ pkgconfig-helper ruby bison rake ] ++ gemNativeBuildInputs;
buildInputs = gemBuildInputs;
