mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
24 lines
679 B
Nix
24 lines
679 B
Nix
{ stdenv, darwin, fetchurl, SDL2, freetype, libGL }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "SDL2_ttf";
|
|
version = "2.0.15";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
|
|
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
|
|
};
|
|
|
|
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/;
|
|
};
|
|
}
|