2018-01-20 15:26:21 +00:00
|
|
|
{ stdenv, darwin, fetchurl, SDL2, freetype, mesa_noglu }:
|
2015-03-07 11:49:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-22 04:24:32 +01:00
|
|
|
name = "SDL2_ttf-${version}";
|
|
|
|
version = "2.0.14";
|
2015-03-07 11:49:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
|
2016-05-10 00:24:32 +01:00
|
|
|
sha256 = "0xljwcpvd2knrjdfag5b257xqayplz55mqlszrqp0kpnphh5xnrl";
|
2015-03-07 11:49:59 +00:00
|
|
|
};
|
|
|
|
|
2018-01-20 21:57:44 +00:00
|
|
|
buildInputs = [ SDL2 freetype mesa_noglu ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
|
2015-03-07 11:49:59 +00:00
|
|
|
|
2016-08-22 04:24:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-03-07 11:49:59 +00:00
|
|
|
description = "SDL TrueType library";
|
2018-01-20 15:26:21 +00:00
|
|
|
platforms = platforms.unix;
|
2016-08-22 04:24:32 +01:00
|
|
|
license = licenses.zlib;
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://www.libsdl.org/projects/SDL_ttf/;
|
2015-03-07 11:49:59 +00:00
|
|
|
};
|
|
|
|
}
|