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

24 lines
677 B
Nix
Raw Normal View History

{ stdenv, darwin, fetchurl, SDL2, freetype, libGL }:
2015-03-07 12:49:59 +01:00
stdenv.mkDerivation rec {
name = "SDL2_ttf-${version}";
version = "2.0.15";
2015-03-07 12:49:59 +01:00
src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
2015-03-07 12:49:59 +01:00
};
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL2 freetype libGL ]
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
2015-03-07 12:49:59 +01:00
meta = with stdenv.lib; {
2015-03-07 12:49:59 +01:00
description = "SDL TrueType library";
platforms = platforms.unix;
license = licenses.zlib;
homepage = https://www.libsdl.org/projects/SDL_ttf/;
2015-03-07 12:49:59 +01:00
};
}