From 42cfe572458821bd848a81c2066a934171e89222 Mon Sep 17 00:00:00 2001 From: Herman Fries Date: Sat, 19 Jan 2019 01:24:00 +0100 Subject: [PATCH] springLobby: Fix TLS problems on downloads --- pkgs/games/spring/fix-certs.patch | 11 +++++++++++ pkgs/games/spring/springlobby.nix | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 pkgs/games/spring/fix-certs.patch diff --git a/pkgs/games/spring/fix-certs.patch b/pkgs/games/spring/fix-certs.patch new file mode 100644 index 000000000000..b31160a05cc6 --- /dev/null +++ b/pkgs/games/spring/fix-certs.patch @@ -0,0 +1,11 @@ +--- a/src/downloader/lib/src/Downloader/CurlWrapper.cpp ++++ b/src/downloader/lib/src/Downloader/CurlWrapper.cpp +@@ -108,7 +108,6 @@ + if (res != CURLE_OK) { + LOG_WARN("Error setting CURLOPT_CAPATH: %d", res); + } +- return; + } + + const std::string cafile = GetCAFilePath(); + diff --git a/pkgs/games/spring/springlobby.nix b/pkgs/games/spring/springlobby.nix index fa7fad3ecd92..8df4450d13d1 100644 --- a/pkgs/games/spring/springlobby.nix +++ b/pkgs/games/spring/springlobby.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { boost libpng libX11 libnotify gtk2 doxygen makeWrapper glib minizip alure ]; - patches = [ ./revert_58b423e.patch ]; # Allows springLobby to continue using system installed spring until #707 is fixed + patches = [ ./revert_58b423e.patch ./fix-certs.patch ]; # Allows springLobby to continue using system installed spring until #707 is fixed enableParallelBuilding = true;