pango: 1.42.1 → 1.42.4

Fixes a horrendous bug that crashes IRC clients, text editors, terminal
emulators that receive invalid Unicode sequence.
This commit is contained in:
Jan Tojnar 2018-08-29 21:28:46 +02:00
parent 7db611f2af
commit f9943cd28a
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,37 +1,45 @@
{ stdenv, fetchurl, pkgconfig, libXft, cairo, harfbuzz { stdenv, fetchurl, pkgconfig, libXft, cairo, harfbuzz
, libintl, gobjectIntrospection, darwin, fribidi , libintl, gobjectIntrospection, darwin, fribidi, gnome3
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, makeFontsConf, freefont_ttf
}: }:
with stdenv.lib; with stdenv.lib;
let let
ver_maj = "1.42"; pname = "pango";
ver_min = "1"; version = "1.42.4";
in in stdenv.mkDerivation rec {
stdenv.mkDerivation rec { name = "${pname}-${version}";
name = "pango-${ver_maj}.${ver_min}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/pango/${ver_maj}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0cnfgcya3wbs9m8g44cl5ww6wbp6qbw96qvsgkr8ymwqn9b6fnli"; sha256 = "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx";
}; };
outputs = [ "bin" "dev" "out" "devdoc" ]; outputs = [ "bin" "dev" "out" "devdoc" ];
buildInputs = [ gobjectIntrospection ]; nativeBuildInputs = [ pkgconfig gobjectIntrospection gtk-doc docbook_xsl docbook_xml_dtd_43 ];
nativeBuildInputs = [ pkgconfig ] buildInputs = optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Carbon
Carbon CoreGraphics
CoreGraphics CoreText
CoreText ]);
]);
propagatedBuildInputs = [ cairo harfbuzz libXft libintl fribidi ]; propagatedBuildInputs = [ cairo harfbuzz libXft libintl fribidi ];
enableParallelBuilding = true; enableParallelBuilding = true;
configureFlags = optional stdenv.isDarwin "--without-x"; # Fontconfig error: Cannot load default config file
FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ freefont_ttf ];
};
doCheck = false; # fails 1 out of 12 tests with "Fontconfig error: Cannot load default config file" doCheck = false; # /layout/valid-1.markup: FAIL
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A library for laying out and rendering of text, with an emphasis on internationalization"; description = "A library for laying out and rendering of text, with an emphasis on internationalization";