From 4d154c3371b047d350382d814e06c5febc99150e Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Sun, 12 Jul 2015 23:02:12 +0200 Subject: [PATCH] purePackages.stldict: fix build with gcc 4.9 (ZHF) --- pkgs/development/pure-modules/stldict/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/pure-modules/stldict/default.nix b/pkgs/development/pure-modules/stldict/default.nix index abfc0d0fdefc..4ade515faa88 100644 --- a/pkgs/development/pure-modules/stldict/default.nix +++ b/pkgs/development/pure-modules/stldict/default.nix @@ -10,6 +10,12 @@ stdenv.mkDerivation rec { sha256 = "5b894ae6dc574c7022258e2732bea649c82c959ec4d0be13fb5a3e8ba8488f28"; }; + postPatch = '' + for f in hashdict.cc orddict.cc; do + sed -i '1i\#include ' $f + done + ''; + buildInputs = [ pkgconfig ]; propagatedBuildInputs = [ pure ]; makeFlags = "libdir=$(out)/lib prefix=$(out)/";