SDL2_{gfx,mixer,net,ttf}: fix Darwin build

This commit is contained in:
Mitsuhiro Nakamura
2018-01-21 00:26:21 +09:00
parent a97eaae950
commit 4014b24ca1
6 changed files with 23 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL2 }:
{ stdenv, darwin, fetchurl, SDL2 }:
stdenv.mkDerivation rec {
name = "SDL2_gfx-${version}";
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "16jrijzdp095qf416zvj9gs2fqqn6zkyvlxs5xqybd0ip37cp6yn";
};
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
buildInputs = [ SDL2 ];
configureFlags = if stdenv.isi686 || stdenv.isx86_64 then "--enable-mmx" else "--disable-mmx";
@@ -38,6 +40,6 @@ stdenv.mkDerivation rec {
license = licenses.zlib;
maintainers = with maintainers; [ bjg ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}