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 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
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 = "SDL TrueType library";
21 platforms = platforms.unix;
22 license = licenses.zlib;
23 homepage = "https://www.libsdl.org/projects/SDL_ttf/";