mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Revert "pango: 1.43.0 -> 1.44.6, fixes CVE-2019-1010238"
This commit is contained in:
parent
dd5d488d7b
commit
419d8ddadd
1 changed files with 13 additions and 14 deletions
|
@ -9,24 +9,15 @@ with stdenv.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "pango";
|
pname = "pango";
|
||||||
version = "1.44.6";
|
version = "1.43.0";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
||||||
sha256 = "0v7qq3fv1c0dl80d4qxsvd6cmhh4ngih3w0zc40f4dw7hfx427iy";
|
sha256 = "1lnxldmv1a12dq5h0dlq5jyzl4w75k76dp8cn360x2ijlm9w5h6j";
|
||||||
};
|
};
|
||||||
|
|
||||||
# 1.44.6-2 is not available from the usual mirrors yet,
|
|
||||||
# so applying from gitlab
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/pango/commit/8a408d4f25ddb0e3d6020cdde0cd8f8a19ee8db2.patch";
|
|
||||||
sha256 = "0l0hxwbijqrfvka302ijgih9jafc2ffs3d6d4v7bwynpn54lmza7";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
# FIXME: docs fail on darwin
|
# FIXME: docs fail on darwin
|
||||||
outputs = [ "bin" "dev" "out" ] ++ optional (!stdenv.isDarwin) "devdoc";
|
outputs = [ "bin" "dev" "out" ] ++ optional (!stdenv.isDarwin) "devdoc";
|
||||||
|
|
||||||
|
@ -35,18 +26,26 @@ in stdenv.mkDerivation rec {
|
||||||
pkgconfig gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
|
pkgconfig gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fribidi
|
harfbuzz fribidi
|
||||||
] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||||
ApplicationServices
|
ApplicationServices
|
||||||
Carbon
|
Carbon
|
||||||
CoreGraphics
|
CoreGraphics
|
||||||
CoreText
|
CoreText
|
||||||
]);
|
]);
|
||||||
propagatedBuildInputs = [ cairo glib libintl harfbuzz ] ++
|
propagatedBuildInputs = [ cairo glib libintl ] ++
|
||||||
optional x11Support libXft;
|
optional x11Support libXft;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# Add gobject-2 to .pc file
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/pango/commit/546f4c242d6f4fe312de3b7c918a848e5172e18d.patch";
|
||||||
|
sha256 = "1cqhy4xbwx3ad7z5d1ks7smf038b9as8c6qy84rml44h0fgiq4m2";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
|
"-Denable_docs=${if stdenv.isDarwin then "false" else "true"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
Loading…
Reference in a new issue