2018-02-24 15:06:44 +03:00
|
|
|
{ stdenv, darwin, fetchurl, SDL2, freetype, libGL }:
|
2015-03-07 14:49:59 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "SDL2_ttf";
|
2019-01-27 09:25:26 +03:00
|
|
|
version = "2.0.15";
|
2015-03-07 14:49:59 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
|
2019-01-27 09:25:26 +03:00
|
|
|
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
|
2015-03-07 14:49:59 +03:00
|
|
|
};
|
|
|
|
|
2018-06-07 02:18:00 +03:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
|
|
|
|
|
2018-02-24 15:06:44 +03:00
|
|
|
buildInputs = [ SDL2 freetype libGL ]
|
2018-01-21 00:57:44 +03:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
|
2015-03-07 14:49:59 +03:00
|
|
|
|
2016-08-22 06:24:32 +03:00
|
|
|
meta = with stdenv.lib; {
|
2015-03-07 14:49:59 +03:00
|
|
|
description = "SDL TrueType library";
|
2018-01-20 18:26:21 +03:00
|
|
|
platforms = platforms.unix;
|
2016-08-22 06:24:32 +03:00
|
|
|
license = licenses.zlib;
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = https://www.libsdl.org/projects/SDL_ttf/;
|
2015-03-07 14:49:59 +03:00
|
|
|
};
|
|
|
|
}
|