From 4014b24ca167a087384b0ccbed88df4538dcc577 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Sun, 21 Jan 2018 00:26:21 +0900 Subject: SDL2_{gfx,mixer,net,ttf}: fix Darwin build --- pkgs/development/libraries/SDL2_ttf/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/development/libraries/SDL2_ttf') diff --git a/pkgs/development/libraries/SDL2_ttf/default.nix b/pkgs/development/libraries/SDL2_ttf/default.nix index 010ca46695a..d691d6dfa1d 100644 --- a/pkgs/development/libraries/SDL2_ttf/default.nix +++ b/pkgs/development/libraries/SDL2_ttf/default.nix @@ -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/; }; -- cgit 1.4.1