nixpkgs-suyu/pkgs/development/libraries/SDL2_ttf/default.nix
Matthew Bauer 08c6c6beb4 SDL2: disable sdltest on darwin
Darwin headless will hang when trying to run the SDL test program.
2018-06-06 19:19:30 -04:00

23 lines
677 B
Nix

{ stdenv, darwin, fetchurl, SDL2, freetype, libGL }:
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";
};
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL2 freetype libGL ]
++ 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/;
};
}