mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
flex: fix with glibc-2.26
It caused segfaults, e.g. when building doxygen.
This commit is contained in:
parent
6c3bae563e
commit
6535f0bca6
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user