nixpkgs/pkgs/development/libraries/SDL2_ttf/default.nix

26 lines
760 B
Nix
Raw Normal View History

2021-11-01 09:54:40 +00:00
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, libGL }:
2015-03-07 11:49:59 +00:00
stdenv.mkDerivation rec {
pname = "SDL2_ttf";
2022-01-13 00:34:36 +00:00
version = "2.0.18";
2015-03-07 11:49:59 +00:00
src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
2022-01-13 00:34:36 +00:00
sha256 = "sha256-cjTriINRTgGed0fHA+SndFdbGNQ1wipKKdBoy3aKIlE=";
2015-03-07 11:49:59 +00:00
};
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
2021-11-01 09:54:40 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ SDL2 freetype libGL ]
++ lib.optional stdenv.isDarwin darwin.libobjc;
2015-03-07 11:49:59 +00:00
meta = with lib; {
2022-01-13 00:34:36 +00:00
description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer";
platforms = platforms.unix;
license = licenses.zlib;
2022-01-13 00:34:36 +00:00
homepage = "https://github.com/libsdl-org/SDL_ttf";
2015-03-07 11:49:59 +00:00
};
}