From a5e803c14b6eb6e7f4169531c6b4c9b17fabac0d Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 17 Jan 2019 09:51:55 +0100 Subject: [PATCH] agg: fix build with gcc8 --- pkgs/development/libraries/agg/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/agg/default.nix b/pkgs/development/libraries/agg/default.nix index c0539aeed476..69517817b596 100644 --- a/pkgs/development/libraries/agg/default.nix +++ b/pkgs/development/libraries/agg/default.nix @@ -10,6 +10,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ autoconf automake libtool freetype SDL libX11 ]; + postPatch = '' + substituteInPlace include/agg_renderer_outline_aa.h \ + --replace 'line_profile_aa& profile() {' 'const line_profile_aa& profile() {' + ''; + # fix build with new automake, from Gentoo ebuild preConfigure = '' sed -i '/^AM_C_PROTOTYPES/d' configure.in