Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

purePackages.stllib: fix build with gcc 4.9 (ZHF)

+6
+6
pkgs/development/pure-modules/stllib/default.nix
··· 10 sha256 = "1d550764fc2f8ba6ddbd1fbd3da2d6965b69e2c992747265d9ebe4f16aa5e455"; 11 }; 12 13 buildInputs = [ pkgconfig ]; 14 propagatedBuildInputs = [ pure ]; 15 makeFlags = "libdir=$(out)/lib prefix=$(out)/";
··· 10 sha256 = "1d550764fc2f8ba6ddbd1fbd3da2d6965b69e2c992747265d9ebe4f16aa5e455"; 11 }; 12 13 + postPatch = '' 14 + for f in pure-stlmap/{stlmap.cpp,stlmmap.cpp,stlhmap.cpp}; do 15 + sed -i '1i\#include <cstddef>' $f 16 + done 17 + ''; 18 + 19 buildInputs = [ pkgconfig ]; 20 propagatedBuildInputs = [ pure ]; 21 makeFlags = "libdir=$(out)/lib prefix=$(out)/";