summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL2_ttf/default.nix
blob: 87436119ef4770023404921298e2a5f572c21b77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, darwin, fetchurl, SDL2, freetype, mesa_noglu }:

stdenv.mkDerivation rec {
  name = "SDL2_ttf-${version}";
  version = "2.0.14";

  src = fetchurl {
    url = "https://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
    sha256 = "0xljwcpvd2knrjdfag5b257xqayplz55mqlszrqp0kpnphh5xnrl";
  };

  buildInputs = [ SDL2 freetype mesa_noglu ]
    ++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;

  meta = with stdenv.lib; {
    description = "SDL TrueType library";
    platforms = platforms.unix;
    license = licenses.zlib;
    homepage = https://www.libsdl.org/projects/SDL_ttf/;
  };
}