1 { lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, libGL }:
3 stdenv.mkDerivation rec {
8 url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
9 sha256 = "sha256-eM2tUfPMOtppMrG7bpFLM3mKuXCh6Bd2PyLdv9l9DFc=";
12 configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
14 nativeBuildInputs = [ pkg-config ];
16 buildInputs = [ SDL2 freetype libGL ]
17 ++ lib.optional stdenv.isDarwin darwin.libobjc;
20 description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer";
21 platforms = platforms.unix;
22 license = licenses.zlib;
23 homepage = "https://github.com/libsdl-org/SDL_ttf";