From 03bd9a363a5019516187715e36567358e98c3f1f Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Thu, 9 Jul 2015 13:52:26 +0200 Subject: [PATCH] pure: fixed build with gcc 4.9 (ZHF) Reported upstream https://bitbucket.org/purelang/pure-lang/issues/37 --- pkgs/development/interpreters/pure/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/interpreters/pure/default.nix b/pkgs/development/interpreters/pure/default.nix index 2860aceb383..c471a3cdc0f 100644 --- a/pkgs/development/interpreters/pure/default.nix +++ b/pkgs/development/interpreters/pure/default.nix @@ -16,6 +16,12 @@ stdenv.mkDerivation rec { buildInputs = [ bison flex makeWrapper ]; propagatedBuildInputs = [ llvm gmp mpfr readline ]; + postPatch = '' + for f in expr.cc matcher.cc printer.cc symtable.cc parserdefs.hh; do + sed -i '1i\#include ' $f + done + ''; + configureFlags = [ "--enable-release" ]; doCheck = true; checkPhase = ''