@@ -15,9 +15,11 @@ stdenv.mkDerivation rec {
1515
1616 postPatch = ''
1717 substituteInPlace config.mk.def \
18− --replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2"
18+ --replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \
19+ --replace "CC=gcc" ""
1920 '';
2021
22+ CFLAGS = "-D_DARWIN_C_SOURCE";
2123 makeFlags = [ "DESTDIR=$(out)" ];
2224 buildInputs = [ libX11 libXt libXft ];
2325
@@ -31,6 +33,6 @@ stdenv.mkDerivation rec {
3133 description = "Updated version of the sam text editor";
3234 license = with licenses; lpl-102;
3335 maintainers = with maintainers; [ ramkromberg ];
34− platforms = with platforms; linux;
36+ platforms = with platforms; unix;
3537 };
3638}