flex: fix with glibc-2.26

It caused segfaults, e.g. when building doxygen.
This commit is contained in:
Vladimír Čunát 2017-11-06 19:20:21 +01:00
parent 6c3bae563e
commit 6535f0bca6
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,4 +1,6 @@
{ stdenv, fetchurl, bison, m4 }:
{ stdenv, fetchurl, bison, m4
, fetchpatch, autoreconfHook, help2man
}:
stdenv.mkDerivation rec {
name = "flex-${version}";
@ -9,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "15g9bv236nzi665p9ggqjlfn4dwck5835vf0bbw2cz7h5c1swyp8";
};
patches = [(fetchpatch {
name = "glibc-2.26.patch";
url = "https://raw.githubusercontent.com/lede-project/source/0fb14a2b1ab2f82c"
+ "/tools/flex/patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch";
sha256 = "1aarhcmz7mfrgh15pkj6f7ikxa2m0mllw1i1vscsf1kw5d05lw6f";
})];
nativeBuildInputs = [ autoreconfHook help2man ];
buildInputs = [ bison ];
propagatedBuildInputs = [ m4 ];