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

freeorion: fix build

`boost::system::posix_error` is deprecated since v1.37, however the
default Boost version in NixOS is 1.66.

The following upstream patch fixed the issue:
https://github.com/freeorion/freeorion/commit/c9b5b13fb81b1ed142dee0e843101c6b8832ca95

See ticket #36453

(cherry picked from commit 7da70c0b87e56375f24584c18faa10b95803c3c9)

authored by Maximilian Bosch and committed by Franz Pletz 9697a84a a3592804

+9 -2
+9 -2
pkgs/games/freeorion/default.nix
··· 1 - { stdenv, fetchFromGitHub, cmake, doxygen, graphviz, makeWrapper 2 - , boost, SDL2, python2, freetype, openal, libogg, libvorbis, zlib, libpng, libtiff, libjpeg, libGLU_combined, glew, libxslt }: 1 + { stdenv, fetchFromGitHub, fetchpatch, cmake, doxygen, graphviz, makeWrapper 2 + , boost, SDL2, python2, freetype, openal, libogg, libvorbis, zlib, libpng, libtiff 3 + , libjpeg, libGLU_combined, glew, libxslt 4 + }: 3 5 4 6 stdenv.mkDerivation rec { 5 7 version = "0.4.7.1"; ··· 19 21 enableParallelBuilding = true; 20 22 21 23 patches = [ 24 + # fix build with boost 1.66 25 + (fetchpatch { 26 + url = https://github.com/freeorion/freeorion/commit/c9b5b13fb81b1ed142dee0e843101c6b8832ca95.patch; 27 + sha256 = "0agqhxk8462sgd230lmdzbrbrfd77zyy7a4g8hrf28zxza1nza94"; 28 + }) 22 29 ./fix_rpaths.patch 23 30 ]; 24 31