diff --git a/pkgs/os-specific/gnu/mig/default.nix b/pkgs/os-specific/gnu/mig/default.nix index 668229b101f6..480b349297a5 100644 --- a/pkgs/os-specific/gnu/mig/default.nix +++ b/pkgs/os-specific/gnu/mig/default.nix @@ -13,12 +13,12 @@ stdenv.mkDerivation { inherit rev; }; + patches = [ ./noyywrap.patch ]; + buildInputs = [ autoconf automake flex bison machHeaders ]; preConfigure = "autoreconf -vfi"; - configureFlags = [ "--build=i586-pc-gnu" ]; - doCheck = true; meta = { diff --git a/pkgs/os-specific/gnu/mig/noyywrap.patch b/pkgs/os-specific/gnu/mig/noyywrap.patch new file mode 100644 index 000000000000..40ca6171f64b --- /dev/null +++ b/pkgs/os-specific/gnu/mig/noyywrap.patch @@ -0,0 +1,12 @@ +Fix undefined reference to `yywrap'. + +diff --git a/lexxer.l b/lexxer.l +index 9725d0b..15264bc 100644 +--- a/lexxer.l ++++ b/lexxer.l +@@ -1,4 +1,5 @@ + %option nounput ++%option noyywrap + + %k 10000 + %n 5000