@@ -1,4 +1,5 @@
1−{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, pkgconfig, flux, zlib
1+{ stdenv, lib, fetchFromGitHub, fetchpatch
2+, autoreconfHook, perl, pkgconfig, flux, zlib
23, libjpeg, freetype, libpng, giflib
34, enableX11 ? true, xorg
45, enableSDL ? true, SDL }:
@@ -14,6 +15,16 @@ stdenv.mkDerivation rec {
1415 sha256 = "0bs3yzb7hy3mgydrj8ycg7pllrd2b6j0gxj596inyr7ihssr3i0y";
1516 };
1617
18+ patches = [
19+ # Fixes build in "davinci" with glibc >= 2.28
20+ # The "davinci" module is only enabled on 32-bit arm.
21+ # https://github.com/deniskropp/DirectFB/pull/17
22+ (fetchpatch {
23+ url = "https://github.com/deniskropp/DirectFB/commit/3a236241bbec3f15b012b6f0dbe94353d8094557.patch";
24+ sha256 = "0rj3gv0zlb225sqjz04p4yagy4xacf3210aa8vra8i1f0fv0w4kw";
25+ })
26+ ];
27+
1728 nativeBuildInputs = [ autoreconfHook perl pkgconfig flux ];
1829
1930 buildInputs = [ zlib libjpeg freetype giflib libpng ]