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_net-${version}";
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
};
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
propagatedBuildInputs = [ SDL2 ];
meta = with stdenv.lib; {
@@ -16,6 +18,6 @@ stdenv.mkDerivation rec {
homepage = https://www.libsdl.org/projects/SDL_net;
license = licenses.zlib;
maintainers = with maintainers; [ MP2E ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}