summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/SDL2_ttf
diff options
context:
space:
mode:
authorCarles Pagès <page@cubata.homelinux.net>2015-03-07 12:49:59 +0100
committerCarles Pagès <page@cubata.homelinux.net>2015-03-07 14:35:19 +0100
commit2bc4f5c1494f83eac40c42a9bba0b4b30ac21aa3 (patch)
tree53840fa9ade60daa4c3a23ba46b7e0c4aed6cbd0 /pkgs/development/libraries/SDL2_ttf
parent2069156d5c71cec217d47bee49a6d629a9485942 (diff)
SDL2_ttf: add version 2.0.12
Diffstat (limited to 'pkgs/development/libraries/SDL2_ttf')
-rw-r--r--pkgs/development/libraries/SDL2_ttf/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/libraries/SDL2_ttf/default.nix b/pkgs/development/libraries/SDL2_ttf/default.nix
new file mode 100644
index 000000000000..d1600ee8a8f4
--- /dev/null
+++ b/pkgs/development/libraries/SDL2_ttf/default.nix
@@ -0,0 +1,18 @@
+{ stdenv, fetchurl, SDL2, freetype }:
+
+stdenv.mkDerivation rec {
+ name = "SDL2_ttf-2.0.12";
+
+ src = fetchurl {
+ url = "https://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
+ sha256 = "0vkg6lyj278mdpd52map3rfi65fbq16w67ahmmfcl77a8da60a47";
+ };
+
+ buildInputs = [SDL2 freetype];
+
+ postInstall = "ln -s $out/include/SDL2/SDL_ttf.h $out/include/";
+
+ meta = {
+ description = "SDL TrueType library";
+ };
+}