From e79a63758d0eabb6e01083f28cb5e40314aae43e Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Sun, 12 Jul 2015 23:18:16 +0200 Subject: [PATCH] purePackages.stllib: fix build with gcc 4.9 (ZHF) --- pkgs/development/pure-modules/stllib/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/pure-modules/stllib/default.nix b/pkgs/development/pure-modules/stllib/default.nix index 3be7bccf2a42..02c96d975ec4 100644 --- a/pkgs/development/pure-modules/stllib/default.nix +++ b/pkgs/development/pure-modules/stllib/default.nix @@ -10,6 +10,12 @@ stdenv.mkDerivation rec { sha256 = "1d550764fc2f8ba6ddbd1fbd3da2d6965b69e2c992747265d9ebe4f16aa5e455"; }; + postPatch = '' + for f in pure-stlmap/{stlmap.cpp,stlmmap.cpp,stlhmap.cpp}; do + sed -i '1i\#include ' $f + done + ''; + buildInputs = [ pkgconfig ]; propagatedBuildInputs = [ pure ]; makeFlags = "libdir=$(out)/lib prefix=$(out)/";