summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2015-07-12 23:02:12 +0200
committerPascal Wittmann <mail@pascal-wittmann.de>2015-07-12 23:18:51 +0200
commit4d154c3371b047d350382d814e06c5febc99150e (patch)
tree721e5b67b01810a2a54c899566e9587e8044fe5d /pkgs/development
parentd3a4fe374f26e450e2a3ea8bf66d1f616af488e3 (diff)
downloadnixpkgs-4d154c3371b047d350382d814e06c5febc99150e.tar
nixpkgs-4d154c3371b047d350382d814e06c5febc99150e.tar.gz
nixpkgs-4d154c3371b047d350382d814e06c5febc99150e.tar.bz2
nixpkgs-4d154c3371b047d350382d814e06c5febc99150e.tar.lz
nixpkgs-4d154c3371b047d350382d814e06c5febc99150e.tar.xz
nixpkgs-4d154c3371b047d350382d814e06c5febc99150e.tar.zst
nixpkgs-4d154c3371b047d350382d814e06c5febc99150e.zip
purePackages.stldict: fix build with gcc 4.9 (ZHF)
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/pure-modules/stldict/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/pure-modules/stldict/default.nix b/pkgs/development/pure-modules/stldict/default.nix
index abfc0d0fdef..4ade515faa8 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 <stddef.h>' $f
+    done
+  '';
+
   buildInputs = [ pkgconfig ];
   propagatedBuildInputs = [ pure ];
   makeFlags = "libdir=$(out)/lib prefix=$(out)/";