From 17dd5686430778d827f1244ad429b7733ee86c1f Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 16 Jun 2021 19:56:11 +0200 Subject: cairo: Apply patch to fix PDF output Otherwise PDFs exported from Inkscape trip up ghostscript. --- pkgs/development/libraries/cairo/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs/development/libraries/cairo') diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 839b7e9f40b94..c7e5c01adb624 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -35,6 +35,13 @@ in stdenv.mkDerivation rec { url = "https://gitlab.freedesktop.org/cairo/cairo/commit/6edf572ebb27b00d3c371ba5ae267e39d27d5b6d.patch"; sha256 = "112hgrrsmcwxh1r52brhi5lksq4pvrz4xhkzcf2iqp55jl2pb7n1"; }) + + # Fix PDF output. + # https://gitlab.freedesktop.org/cairo/cairo/issues/342 + (fetchpatch { + url = "https://gitlab.freedesktop.org/cairo/cairo/commit/5e34c5a9640e49dcc29e6b954c4187cfc838dbd1.patch"; + sha256 = "yCwsDUY7efVvOZkA6a0bPS+RrVc8Yk9bfPwWHeOjq5o="; + }) ] ++ optionals stdenv.hostPlatform.isDarwin [ # Workaround https://gitlab.freedesktop.org/cairo/cairo/-/issues/121 ./skip-configure-stderr-check.patch -- cgit 1.4.1