nixpkgs/pkgs/development/libraries/pango/default.nix

54 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libXft, cairo, harfbuzz
2018-07-21 18:43:53 +01:00
, libintl, gobjectIntrospection, darwin, fribidi
}:
2016-03-29 17:04:46 +01:00
with stdenv.lib;
let
ver_maj = "1.42";
ver_min = "1";
in
stdenv.mkDerivation rec {
name = "pango-${ver_maj}.${ver_min}";
src = fetchurl {
url = "mirror://gnome/sources/pango/${ver_maj}/${name}.tar.xz";
sha256 = "0cnfgcya3wbs9m8g44cl5ww6wbp6qbw96qvsgkr8ymwqn9b6fnli";
};
outputs = [ "bin" "dev" "out" "devdoc" ];
buildInputs = [ gobjectIntrospection ];
nativeBuildInputs = [ pkgconfig ]
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Carbon
CoreGraphics
CoreText
]);
propagatedBuildInputs = [ cairo harfbuzz libXft libintl fribidi ];
enableParallelBuilding = true;
2016-03-29 17:04:46 +01:00
configureFlags = optional stdenv.isDarwin "--without-x";
2018-07-29 10:23:20 +01:00
doCheck = false; # fails 1 out of 12 tests with "Fontconfig error: Cannot load default config file"
meta = with stdenv.lib; {
description = "A library for laying out and rendering of text, with an emphasis on internationalization";
longDescription = ''
Pango is a library for laying out and rendering of text, with an
emphasis on internationalization. Pango can be used anywhere
that text layout is needed, though most of the work on Pango so
far has been done in the context of the GTK+ widget toolkit.
Pango forms the core of text and font handling for GTK+-2.x.
'';
2018-06-23 12:34:55 +01:00
homepage = https://www.pango.org/;
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux ++ platforms.darwin;
};
}