git.iko.soy/typeable/nixpkgs
on master help sign in
deadpixi-sam: fix on Darwin
commit88b485a0627070a7cb432f63014a8eae62e94655 authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateFri 19 Jan 2018, 00:26 (9 years ago) parent4dff3ee
1 file changed+4−2
pkgs/applications/editors/deadpixi-sam/default.nix+4−2
pkgs/applications/editors/deadpixi-sam/default.nix+4−2
@@ -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}