about summary refs log tree commit diff
path: root/pkgs/development/libraries/harfbuzz/default.nix
blob: 78e016c1582e3fbc924da36a4e7bfcb3603f0c2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, pkgconfig, glib, freetype,
  icu ? null, graphite2 ? null, libintlOrEmpty }:

stdenv.mkDerivation rec {
  name = "harfbuzz-0.9.12";

  src = fetchurl {
    url = "http://www.freedesktop.org/software/harfbuzz/release/${name}.tar.bz2";
    sha256 = "19cx5y2m20rp7z5j7mwqfb4ph2g8lrri69zim44x362y4w5gfly6";
  };

  buildInputs = [ pkgconfig glib freetype ]
    ++ libintlOrEmpty;
  propagatedBuildInputs = []
    ++ (stdenv.lib.optionals (icu != null) [icu])
    ++ (stdenv.lib.optionals (graphite2 != null) [graphite2])
    ;

  meta = {
    description = "An OpenType text shaping engine";
    homepage = http://www.freedesktop.org/wiki/Software/HarfBuzz;
    maintainers = [ stdenv.lib.maintainers.eelco ];
    platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
  };
}