SDL2_{gfx,mixer,net,ttf}: fix Darwin build
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, SDL2, freetype, mesa_noglu }:
|
||||
{ stdenv, darwin, fetchurl, SDL2, freetype, mesa_noglu }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "SDL2_ttf-${version}";
|
||||
@@ -9,11 +9,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0xljwcpvd2knrjdfag5b257xqayplz55mqlszrqp0kpnphh5xnrl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
|
||||
|
||||
buildInputs = [ SDL2 freetype mesa_noglu ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "SDL TrueType library";
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
license = licenses.zlib;
|
||||
homepage = https://www.libsdl.org/projects/SDL_ttf/;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user