@@ -1,7 +1,6 @@
11{ stdenv, composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi
22, freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng
33, cfg ? {}
4−, automake, autoconf, libtool
54}:
65
76let inherit (composableDerivation) edf; in
@@ -16,19 +15,15 @@ composableDerivation.composableDerivation {} {
1615 };
1716
1817 # http://www.fltk.org/str.php?L3156
19− patchPhase = ''
18+ postPatch = ''
2019 substituteInPlace FL/x.H \
2120 --replace 'class Fl_XFont_On_Demand' 'class FL_EXPORT Fl_XFont_On_Demand'
2221 '';
2322
23+ nativeBuildInputs = [ pkgconfig ];
2424 propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
2525
26− enableParallelBilding = true;
27−
28− nativeBuildInputs = [
29− pkgconfig
30− automake autoconf libtool # only required because of patch
31− ];
26+ enableParallelBuilding = true;
3227
3328 flags =
3429 # this could be tidied up (?).. eg why does it require freeglut without glSupport?