mruby: Fix build with bison 3.6

This commit is contained in:
adisbladis
2020-06-26 11:53:53 +02:00
parent cd8e099ffe
commit 2366150cab
2 changed files with 61 additions and 0 deletions
@@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ ruby bison ];
patches = [ ./bison-36-compat.patch ];
# Necessary so it uses `gcc` instead of `ld` for linking.
# https://github.com/mruby/mruby/blob/35be8b252495d92ca811d76996f03c470ee33380/tasks/toolchains/gcc.rake#L25
preBuild = if stdenv.isLinux then "unset LD" else null;