2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, libGL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "SDL2_ttf";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "2.20.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-eM2tUfPMOtppMrG7bpFLM3mKuXCh6Bd2PyLdv9l9DFc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ SDL2 freetype libGL ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional stdenv.isDarwin darwin.libobjc;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.zlib;
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/libsdl-org/SDL_ttf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|