deadpixi-sam: fix on Darwin
This commit is contained in:
parent
4dff3ee959
commit
88b485a062
|
@ -15,9 +15,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace config.mk.def \
|
substituteInPlace config.mk.def \
|
||||||
--replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2"
|
--replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \
|
||||||
|
--replace "CC=gcc" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
CFLAGS = "-D_DARWIN_C_SOURCE";
|
||||||
makeFlags = [ "DESTDIR=$(out)" ];
|
makeFlags = [ "DESTDIR=$(out)" ];
|
||||||
buildInputs = [ libX11 libXt libXft ];
|
buildInputs = [ libX11 libXt libXft ];
|
||||||
|
|
||||||
|
@ -31,6 +33,6 @@ stdenv.mkDerivation rec {
|
||||||
description = "Updated version of the sam text editor";
|
description = "Updated version of the sam text editor";
|
||||||
license = with licenses; lpl-102;
|
license = with licenses; lpl-102;
|
||||||
maintainers = with maintainers; [ ramkromberg ];
|
maintainers = with maintainers; [ ramkromberg ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue