Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát
2019-01-22 15:59:42 +01:00
266 changed files with 5298 additions and 2613 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -1,30 +1,42 @@
{ fetchurl, stdenv, cmake, pkgconfig, makeWrapper, python, alsaLib
, libX11, libGLU, SDL, lua5, zlib, freetype, wavpack
{ fetchFromGitHub, fetchurl, stdenv, bam, pkgconfig, makeWrapper, python, alsaLib
, libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack
}:
stdenv.mkDerivation rec {
name = "teeworlds-0.6.5";
name = "teeworlds-0.7.2";
src = fetchurl {
url = "https://downloads.teeworlds.com/teeworlds-0.6.5-src.tar.gz";
sha256 = "07llxjc47d1gd9jqj3vf08cmw26ha6189mwcix1khwa3frfbilqb";
src = fetchFromGitHub {
owner = "teeworlds";
repo = "teeworlds";
rev = "0.7.2";
sha256 = "15l988qcsqgb6rjais0qd5sd2rjanm2708jmzvkariqzz0d6pb93";
};
postPatch = ''
# we always want to use system libs instead of these
rm -r other/{freetype,sdl}/{include,mac,windows}
# set compiled-in DATA_DIR so resources can be found
substituteInPlace src/engine/shared/storage.cpp \
--replace '#define DATA_DIR "data"' \
'#define DATA_DIR "${placeholder "out"}/share/teeworlds/data"'
'';
nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ bam pkgconfig ];
configurePhase = ''
bam config
'';
buildPhase = ''
bam conf=release
'';
installPhase = ''
mkdir -p $out/bin $out/share/teeworlds
cp build/x86_64/release/teeworlds{,_srv} $out/bin
cp -r build/x86_64/release/data $out/share/teeworlds
'';
buildInputs = [
python alsaLib libX11 libGLU SDL lua5 zlib freetype wavpack
python alsaLib libX11 libGLU SDL2 lua5_3 zlib freetype wavpack
];
postInstall = ''
@@ -45,6 +57,6 @@ stdenv.mkDerivation rec {
homepage = https://teeworlds.com/;
license = "BSD-style, see `license.txt'";
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
platforms = with stdenv.lib.platforms; linux;
platforms = ["x86_64-linux" "i686-linux"];
};
}